This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients amaury.forgeotdarc, belopolsky, eisele, loewis, rhettinger
Date 2008-04-12.04:20:19
SpamBayes Score 0.009917426
Marked as misclassified No
Message-id <1207974020.11.0.207991003677.issue2607@psf.upfronthosting.co.za>
In-reply-to
Content
This discussion ought to be moved to comp.lang.python.  The timing 
script needs work.  It doesn't isolate any one issue for discussion.  
It is affected by GC, dict resizing, details of creating and hashing 
string objects, the need to periodically call the system malloc, etc. 

You get different results if:
* a new dictionary is created on each pass
* if any of the objects get reused
* if range(5) gets replaces with [0]*5
* if you use longs instead of ints
* if the strings are of fixed length:  str(j)[:5]

This is the wrong forum to explain every nuance of what affects 
performance and whether you think perl is better.
History
Date User Action Args
2008-04-12 04:20:20rhettingersetspambayes_score: 0.00991743 -> 0.009917426
recipients: + rhettinger, loewis, amaury.forgeotdarc, belopolsky, eisele
2008-04-12 04:20:20rhettingersetspambayes_score: 0.00991743 -> 0.00991743
messageid: <1207974020.11.0.207991003677.issue2607@psf.upfronthosting.co.za>
2008-04-12 04:20:19rhettingerlinkissue2607 messages
2008-04-12 04:20:19rhettingercreate