Antoine Pitrou <pit...@free.fr> added the comment:

It's because of the cyclic garbage collector. If you call gc.disable() at the 
beginning of your benchmark, you'll see that runtimes get more similar in both 
cases.
You can also use tuples instead of lists as much as possible, it will reduce 
pressure on the GC.

----------
nosy: +pitrou

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13351>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to