Psyco - speeding up Python

Check out the new site at

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 psyco2
And build/install the module:
python build
python install
To use psyco add the following at the beginning of the script:
import psyco


Here is a simple md5 brute-force attack script:
import md5
import sys

haslo = 'kogut'
hasz_hasla =

def make_word(m, base_string=False):
	znaki = 'qwertyuiopasdfghjklzxcvbnm'
	for i in znaki:
		if base_string:
			string = base_string + i
			string = i
		if == m:
			print 'The password is: ' + string
		elif len(string) < 5:
			make_word(m=m, base_string=string)

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!.

Web development, 22 July 2009

Check out the new site at
Comment article
Comment article RkBlog main page Search RSS Contact