[issue21955] ceval.c: implement fast path for integers with a single digit

STINNER Victor report at bugs.python.org
Wed Feb 3 12:05:22 EST 2016


STINNER Victor added the comment:

> python -m timeit  "sum([x * x * 1 for x in range(100)])"

If you only want to benchmark x*y, x+y and list-comprehension, you
should use a tuple for the iterator.

----------

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


More information about the Python-bugs-list mailing list