speeding up Python

Luis P. Mendes luis_lupe2XXX at netvisaoXXX.pt
Tue May 17 20:29:06 EDT 2005


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



More information about the Python-list mailing list