Psyco - speeding up Python
Check out the new site at https://rkblog.dev.
22 July 2009
Comments
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 psyco2
And build/install the module:
python setup.py build python setup.py install
import psyco
psyco.full()
Tests
Here is a simple md5 brute-force attack script:import md5
import sys
haslo = 'kogut'
hasz_hasla = md5.new(haslo).hexdigest()
def make_word(m, base_string=False):
znaki = 'qwertyuiopasdfghjklzxcvbnm'
for i in znaki:
if base_string:
string = base_string + i
else:
string = i
if md5.new(string).hexdigest() == m:
print 'The password is: ' + string
sys.exit()
elif len(string) < 5:
make_word(m=m, base_string=string)
make_word(hasz_hasla)

RkBlog
Check out the new site at https://rkblog.dev.
Comment article