Psyco - speeding up Python
Installation and usage of Psyco module
Resurected Psyco2 works, and it does it quite well. It supports only 32-bit systems, but even so the performace boost can be significant.
To install psyco get the code from SVN:
svn co http://codespeak.net/svn/psyco/v2/dist psyco2And build/install the module:
To use psyco add the following at the beginning of the script:
python setup.py build python setup.py install
TestsHere is a simple md5 brute-force attack script: I've tested execution time of this script on Python 2.6 for amd64 (Gentoo) and i686 (Archlinux). The results are on the chart below. i686 finished after about 20 seconds, amd64 did the job in 14 seconds, but i686 and psyco won with 12 seconds!.