Psyco alternative

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Thu Mar 27 11:59:33 EDT 2008


Diez B. Roggisch:
> the author says that the approach is flawed, so at *some*
> point it will be discontinued.

Can't Psyco be improved, so it can compile things like:

nums = (i for i in xrange(200000) if i % 2)
print sum(nums)

I think the current Psyco runs slower than Python with generators/
iterators. To speed up that code with Psyco you have to write this:

nums = [i for i in xrange(200000) if i % 2]
print sum(nums)

Bye,
bearophile



More information about the Python-list mailing list