[issue39156] Break up COMPARE_OP into logically distinct operations.

Pablo Galindo Salgado report at bugs.python.org
Sun Dec 29 15:39:06 EST 2019


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

I think is a good idea, being the only problem that I see that as the opcode targets are limited we would be burning 3 more. I specially like the proposal for JUMP_IF_NOT_EXC_MATCH as PyCmp_EXC_MATCH is only used in the code for the try-except and is always followed by a POP_JUMP_IF_FALSE.

As a curiosity, it would be good to have an idea on performance gains of specializing the comparison.

----------

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


More information about the Python-bugs-list mailing list