[issue27127] Never have GET_ITER not followed by FOR_ITER

Demur Rumed report at bugs.python.org
Sun May 29 15:59:10 EDT 2016


Demur Rumed added the comment:

Pretty small perf increase:

timeit("for a in range(256):pass", number=100000)
Without patch: ~2.1
With patch: ~1.84

pybench is 1-2% faster. Would prefer others' results. Especially a benchmark where it doesn't wrap payloads in for loops

----------

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


More information about the Python-bugs-list mailing list