[issue42693] "if 0:" lines are traced; they didn't use to be

Mark Shannon report at bugs.python.org
Tue Dec 22 17:25:24 EST 2020


Mark Shannon <mark at hotpy.org> added the comment:

There isn't much of a plan.

https://github.com/python/cpython/pull/23896 makes the optimizer respect PEP 626 w.r.t. jumps-to-jumps. 

>From the point of view of optimization, there is nothing special about jumps-to-jumps.
Any optimization that offers a speed up is good, regardless of which language feature it relates to.

To be honest, bytecode optimizations are going to win us a few percent max, whereas speeding up the interpreter could gain us 50-100%. So I'm not going to worry about trivial differences.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42693>
_______________________________________


More information about the Python-bugs-list mailing list