Antoine Pitrou added the comment:

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).

----------
nosy: +pitrou
Added file: http://bugs.python.org/file9421/py3k_longfreelist2.patch

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2013>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to