[Tutor] Psyco Puzzle

Dick Moores rdm at rcblue.com
Thu Jan 11 13:36:40 CET 2007


Sometimes psyco speeds up a script by a factor of 10, and sometimes 
it makes no difference at all. Here's a case where I fully expected 
it to make a difference: 
<http://www.rcblue.com/Python/Psyco_Puzzle.txt>. Whether using psyco 
or not, this takes about 13 seconds on my computer. Why no difference?

Here's a script where psyco makes a big difference: 
<http://www.rcblue.com/Python/2primes1-a2.py>. 1.8 seconds with 
psyco, vs. 12.7. without.seconds.

Thanks,

Dick Moores
Win XP
Python 2.5
psyco for Python 2.5



More information about the Tutor mailing list