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 amaury.forgeotdarc, jafo, lemburg, orivej, pitrou
Date 2008-03-20.19:36:48
SpamBayes Score 0.330954
Marked as misclassified No
Message-id <>
You are right, #2321 made the numbers a bit tighter:

With a small string:
./python -m timeit -s "s=open('INTBENCH', 'r').read()" "s.split()"
-> Unpatched py3k: 23.1 usec per loop
-> Freelist patch: 21.3 usec per loop
-> PyVarObject patch: 20.5 usec per loop

With a medium-sized string:
./python -m timeit -s "s=open('LICENSE', 'r').read()" "s.split()"
-> Unpatched py3k: 406 usec per loop
-> Freelist patch: 353 usec per loop
-> PyVarObject patch: 314 usec per loop

With a long string:
./python -m timeit -s "s=open('Misc/HISTORY', 'r').read()" "s.split()"
-> Unpatched py3k: 22.7 msec per loop
-> Freelist patch: 24 msec per loop
-> PyVarObject patch: 20.6 msec per loop

-> Unpatched py3k: 266 seconds
-> Freelist patch: 264 seconds
-> PyVarObject patch: 249 seconds

Regarding your benchmarking suggestion, this would certainly be an
interesting thing to do, but I fear it is also much more than I'm
willing to do...

I'm going to post the updated patches.
Date User Action Args
2008-03-20 19:36:51pitrousetspambayes_score: 0.330954 -> 0.330954
recipients: + pitrou, lemburg, jafo, amaury.forgeotdarc, orivej
2008-03-20 19:36:50pitrousetspambayes_score: 0.330954 -> 0.330954
messageid: <>
2008-03-20 19:36:49pitroulinkissue1943 messages
2008-03-20 19:36:48pitroucreate