speeding up Python script

James Stroud jstroud at mbi.ucla.edu
Tue May 17 21:06:36 EDT 2005


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 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 to find some tool that converts Python to C automatically but
> couldn't.  As I don't know C, I think that weave and PyInline for
> example are out of the solution.
>
> I'm using Linux.
>
> Luis

-- 
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095

http://www.jamesstroud.com/



More information about the Python-list mailing list