speeding up Python script

Peter Dembinski pdemb at gazeta.pl
Wed May 18 07:42:13 EDT 2005


"Luis P. Mendes" <luis_lupe2XXX at netvisaoXXX.pt> 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 performance around 3% in this case which is not good
> enough.
>
> How can I dramatically improve speed?

You are looking for better algorithm, not for Python optimisations.

-- 
http://www.peter.dembinski.prv.pl



More information about the Python-list mailing list