Speed quirk: redundant line gives six-fold speedup

Erik Max Francis max at alcyone.com
Thu Aug 25 13:39:15 EDT 2005


Bill Mill wrote:

> Unlikely; 2 people have confirmed these results already.
> 
> I did find, though, that if I remove all print statements from the
> program, the dummy and non-dummy variable versions take indentical
> time. Can others reproduce this?

Yes, it's obviously a real effect given the other sightings.  I don't 
see any speed difference, myself (Pentium IV 3.0 GHz running Slackware 
Linux).

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
   There never was a good war or a bad peace.
   -- Benjamin Franklin



More information about the Python-list mailing list