Remarkable results with psyco and sieve of Eratosthenes

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Thu Nov 30 03:20:06 EST 2006


George Sakkis:
> You can also save an attribute lookup for append; just add
> append = primes.append
> outside of the loop and replace primes.append(x) with append(x)
> That should cut down a few fractions of second.

We were talking about Psyco, and I think with Psyco (just released for
Py 2.5, BTW) such tricks are less useful.

Bye,
bearophile




More information about the Python-list mailing list