Re: State of speeding up Python for full applications

2014-06-26 Thread Mark Lawrence
On 26/06/2014 17:49, CM wrote: I'm reposting my question with, I hope, better formatting: I occasionally hear about performance improvements for Python by various projects like psyco (now old), ShedSkin, Cython, PyPy, Nuitka, Numba, and probably many others. The benchmarks are out there, and t

Re: State of speeding up Python for full applications

2014-06-26 Thread CM
I'm reposting my question with, I hope, better formatting: I occasionally hear about performance improvements for Python by various projects like psyco (now old), ShedSkin, Cython, PyPy, Nuitka, Numba, and probably many others. The benchmarks are out there, and they do make a difference,

Re: State of speeding up Python for full applications

2014-06-26 Thread alister
On Wed, 25 Jun 2014 20:54:29 -0700, CM wrote: > I occasionally hear about performance improvements for Python by various > projects like psyco (now old), ShedSkin, Cython, PyPy, Nuitka, Numba, > and probably many others. The benchmarks are out there, and they do > make a difference, and sometimes

State of speeding up Python for full applications

2014-06-25 Thread CM
I occasionally hear about performance improvements for Python by various projects like psyco (now old), ShedSkin, Cython, PyPy, Nuitka, Numba, and probably many others. The benchmarks are out there, and they do make a difference, and sometimes a difference on par with C, from what I've heard.

Speeding up Python

2013-06-06 Thread Steven D'Aprano
Comparing CPython, PyPy, SciPy, Parakeet and Numba for writing image filters: http://www.phi-node.com/2013/06/faster-morphological-image-filters-in.html -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Tips on Speeding up Python Execution

2011-04-08 Thread Abhijeet Mahagaonkar
Thats awesome. Its time I migrate to 3 :) On Fri, Apr 8, 2011 at 11:29 PM, Raymond Hettinger wrote: > On Apr 8, 12:25 am, Chris Angelico wrote: > > On Fri, Apr 8, 2011 at 5:04 PM, Abhijeet Mahagaonkar > > > > wrote: > > > I was able to isolate that major chunk of run time is eaten up in > open

Re: Tips on Speeding up Python Execution

2011-04-08 Thread Raymond Hettinger
On Apr 8, 12:25 am, Chris Angelico wrote: > On Fri, Apr 8, 2011 at 5:04 PM, Abhijeet Mahagaonkar > > wrote: > > I was able to isolate that major chunk of run time is eaten up in opening a > > webpages, reading from them and extracting text. > > I wanted to know if there is a way to concurrently c

Re: Tips on Speeding up Python Execution

2011-04-08 Thread Matt Chaput
On 08/04/2011 11:31 AM, Chris Angelico wrote: On Sat, Apr 9, 2011 at 12:41 AM, MRAB wrote: On 08/04/2011 08:25, Chris Angelico wrote: [snip] I don't know what's the most Pythonesque option, but if you already have specific Python code for each of your functions, it's probably going to be easi

Re: Tips on Speeding up Python Execution

2011-04-08 Thread Chris Angelico
On Sat, Apr 9, 2011 at 12:41 AM, MRAB wrote: > On 08/04/2011 08:25, Chris Angelico wrote: > [snip] >> >> I don't know what's the most Pythonesque option, but if you already >> have specific Python code for each of your functions, it's probably >> going to be easiest to spawn threads for them all.

Re: Tips on Speeding up Python Execution

2011-04-08 Thread MRAB
On 08/04/2011 08:25, Chris Angelico wrote: [snip] I don't know what's the most Pythonesque option, but if you already have specific Python code for each of your functions, it's probably going to be easiest to spawn threads for them all. "Pythonesque" refers to "Monty Python's Flying Circus". Th

Re: Tips on Speeding up Python Execution

2011-04-08 Thread Chris Angelico
On Fri, Apr 8, 2011 at 5:04 PM, Abhijeet Mahagaonkar wrote: > I was able to isolate that major chunk of run time is eaten up in opening a > webpages, reading from them and extracting text. > I wanted to know if there is a way to concurrently calling the functions. So, to clarify: you have code th

Tips on Speeding up Python Execution

2011-04-08 Thread Abhijeet Mahagaonkar
Dear Pythoners, I have written a python application which authenticates a user, reads a webpage and searches for pattern and builds a database ( In my case its a dictinary with fixed set of keys). Inputting the username and password for authentication and final display of the results is done by GUI

RE: speeding up Python when using wmi

2005-11-28 Thread Tim Golden
[rbt] >> Here's a quick and dirty version of winver.exe written in Python: [Tim Golden] > In short, I recommend replacing the wmi module by the underlying > calls which it hides, and replacing Tkinter by a win32gui MessageBox. [rbt] >Wow... thanks. I didn't expect someone to completely rewrite it

Re: speeding up Python when using wmi

2005-11-28 Thread rbt
Tim Golden wrote: > [rbt] > >> Here's a quick and dirty version of winver.exe written in Python: > > [.. snip ..] > >> It uses wmi to get OS information from Windows... it works well, but >> it's slow... too slow. Is there any way to speed up wmi? > >> In the past, I used the platform and sys

RE: speeding up Python when using wmi

2005-11-28 Thread Tim Golden
[rbt] > Here's a quick and dirty version of winver.exe written in Python: [.. snip ..] > It uses wmi to get OS information from Windows... it works well, but > it's slow... too slow. Is there any way to speed up wmi? > In the past, I used the platform and sys modules to do some of what > winv

speeding up Python when using wmi

2005-11-28 Thread rbt
Here's a quick and dirty version of winver.exe written in Python: http://filebox.vt.edu/users/rtilley/public/winver/winver.html It uses wmi to get OS information from Windows... it works well, but it's slow... too slow. Is there any way to speed up wmi? In the past, I used the platform and sys

RE: speeding up Python script

2005-05-18 Thread Delaney, Timothy C (Timothy)
James Carroll wrote: > It looks like your algorithm really does iterate over all values for > six variables and do lots of math.. then you can't do any better than > implementing the inner loop in C. Or Pyrex ... http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ For this type of situation, Py

Re: speeding up Python script

2005-05-18 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I appreciate everyone's help! I got some ideas that I'll try to put into practice. Regards, Luis -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCi7QQHn4UHCY8

Re: speeding up Python script

2005-05-18 Thread James Carroll
It looks like your algorithm really does iterate over all values for six variables and do lots of math.. then you can't do any better than implementing the inner loop in C. It does look like you have some functions that are being called that are also in python, and it would be interesting to see i

Re: speeding up Python script

2005-05-18 Thread Grant Edwards
On 2005-05-18, Luis P. Mendes <[EMAIL PROTECTED]> wrote: > I have a 1000 line python script that takes many hours to > finish. It is running with six inside 'for' loops. [...] > How can I dramatically improve speed? In probably order of efficacy: 1) Use a better algorithm 2) Replace 'for'

Re: speeding up Python script

2005-05-18 Thread Lonnie Princehouse
Quick tip- Try xrange instead of range. This will use dramatically less memory if your search space is large, which will speed things up /if/ your machine is being forced to swap. Besides that, without seeing the code for your functions, it's hard to offer more advice. Your algorithm is necess

Re: speeding up Python script

2005-05-18 Thread Dan Sommers
On Wed, 18 May 2005 12:56:50 +0100, "Luis P. Mendes" <[EMAIL PROTECTED]> wrote: > The reason why I'm using six nested for loops is because I need to find > the best output using those six variables as input. > Here's the simplified code: > for per in range(): > ~for s in range(): > ~

Re: speeding up Python script

2005-05-18 Thread Robert Kern
Luis P. Mendes wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > The reason why I'm using six nested for loops is because I need to find > the best output using those six variables as input. > > Here's the simplified code: > > for per in range(): > ~for s in range(): > ~fo

Re: speeding up Python script

2005-05-18 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The reason why I'm using six nested for loops is because I need to find the best output using those six variables as input. Here's the simplified code: for per in range(): ~for s in range(): ~for t in range(): for v in range()

Re: speeding up Python script

2005-05-18 Thread Tomasz Rola
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 18 May 2005, Luis P. Mendes wrote: > Hi, > > I have a 1000 line python script that takes many hours to finish. It is > running with six inside 'for' loops. > > I've searched the net for ways to speed up the proccess. > > Psyco improves per

Re: speeding up Python script

2005-05-18 Thread Peter Dembinski
"Luis P. Mendes" <[EMAIL PROTECTED]> writes: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I have a 1000 line python script that takes many hours to finish. > It is running with six inside 'for' loops. > > I've searched the net for ways to speed up the proccess. > > Psyco improves

Re: speeding up Python script

2005-05-17 Thread James Stroud
You may want to read through this case study by the BDFL. http://www.python.org/doc/essays/list2str.html On Tuesday 17 May 2005 05:32 pm, Luis P. Mendes wrote: > Hi, > > I have a 1000 line python script that takes many hours to finish. It is > running with six inside 'for' loops. > > I've search

Re: speeding up Python script

2005-05-17 Thread Rune Strand
Without seeing any code, it's hard to tell, but it's not a wild guess that 'six inside for loops' may be replaced by more efficient ways ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: speeding up Python

2005-05-17 Thread Dave Brueck
Luis P. Mendes wrote: > I have a 1000 line python script that takes many hours to finish. It is > running with six inside 'for' loops. Hi Luis, Before going too much into optimizing your current code, you might want to take a step back and see if another approach to your problem might work ins

speeding up Python script

2005-05-17 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a 1000 line python script that takes many hours to finish. It is running with six inside 'for' loops. I've searched the net for ways to speed up the proccess. Psyco improves performance around 3% in this case which is not good enough. H

speeding up Python

2005-05-17 Thread Luis P. Mendes
Hi, I have a 1000 line python script that takes many hours to finish. It is running with six inside 'for' loops. I've searched the net for ways to speed up the proccess. Psyco improves performance around 3% in this case which is not good enough. How can I dramatically improve speed? I tried