[issue14126] Speed up list comprehensions by preallocating the list where possible

Ezio Melotti report at bugs.python.org
Sat Mar 3 14:45:20 CET 2012


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

You should try to port the patch to 3.3 and do some benchmark there.
Having some additional tests to make sure that it works fine in all the cases would be nice too (even if listcomps are already used elsewhere in the code/tests).

----------
nosy: +ezio.melotti
stage:  -> needs patch
versions: +Python 3.3 -Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14126>
_______________________________________


More information about the Python-bugs-list mailing list