Use explicit constants in stack effects when known. #116468
Labels
3.13
bugs and security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
performance
Performance or resource usage
We use
oparg
for stack effects even whenoparg
is a constant for a particular specialization.For example
UNPACK_SEQUENCE_TUPLE
is defined as:resulting in slightly inefficient code. It should be defined as:
Linked PRs
oparg
in stack effects whenoparg
is known to be a constant. #116469The text was updated successfully, but these errors were encountered: