[issue27127] Never have GET_ITER not followed by FOR_ITER
Serhiy Storchaka
report at bugs.python.org
Tue Jun 7 00:13:06 EDT 2016
Serhiy Storchaka added the comment:
What if generate following code?
GET_ITER
JUMP_FORWARD L2
L1:
# ...
L2:
FOR_ITER L1
This saves one jump instruction per iteration.
Next, we can merge GET_ITER+JUMP_FORWARD in one FOR_BEGIN instruction for regular loops. Generators will start with JUMP_FORWARD.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27127>
_______________________________________
More information about the Python-bugs-list
mailing list