Antoine Pitrou added the comment:

Here is a patch. Micro-benchmark:

$ ./python -m timeit -s "l=[]; it=(x for x in ())" "l.extend(it)"
-> before: 0.449 usec per loop
-> after: 0.179 usec per loop

----------
keywords: +patch
Added file: http://bugs.python.org/file32318/lengthhint.patch

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

Reply via email to