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 pitrou
Recipients christian.heimes, pitrou
Date 2008-02-12.22:19:04
SpamBayes Score 0.0010231077
Marked as misclassified No
Message-id <1202854746.47.0.80903789566.issue2013@psf.upfronthosting.co.za>
In-reply-to
Content
I don't get the same impressive speedup as you do, although it's still
significant.

$ ./python -m timeit "for i in range(100): list(range(1000))"
Without patch:
100 loops, best of 3: 5.05 msec per loop
With patch:
100 loops, best of 3: 3.57 msec per loop

Also, your patch is leaky. I'm attaching a fixed version (for py3k,
didn't check the trunk version).
History
Date User Action Args
2008-02-12 22:19:06pitrousetspambayes_score: 0.00102311 -> 0.0010231077
recipients: + pitrou, christian.heimes
2008-02-12 22:19:06pitrousetspambayes_score: 0.00102311 -> 0.00102311
messageid: <1202854746.47.0.80903789566.issue2013@psf.upfronthosting.co.za>
2008-02-12 22:19:05pitroulinkissue2013 messages
2008-02-12 22:19:05pitroucreate