performance of tight loop

Ulrich Eckhardt ulrich.eckhardt at dominolaser.com
Tue Dec 14 02:08:14 EST 2010


Steven D'Aprano wrote:
> Replacing "while True" with "while 1" may save a tiny bit of overhead.
> Whether it is significant or not is another thing.

Is this the price for an intentional complexity or just a well-known
optimizer deficiency?

Just curious...

Uli

-- 
Domino Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932




More information about the Python-list mailing list