Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This pair accounts for 3.1% of all opcode pairs (the next runner-up is only 1.8%). Hopefully that would translate into about 3.1% of total instructions executed being LOAD_FAST__LOAD_ATTR_INSTANCE_VALUE, or a bit more if we make sure to prioritize it over
LOAD_FAST__LOAD_FAST, LOAD_ATTR_INSTANCE_VALUE
, which is now at 0.3% of all pairs.For reference, current super/combined-instruction stats are:
LOAD_FAST__LOAD_ATTR_INSTANCE_VALUE can also probably elide an INCREF/DECREF pair for
owner
in the expressiony = owner.attr
, and avoid touching the stack until the finalPUSH(result)
.The super instruction can be added at specialization time, something like
Upon deoptimization, it can deoptimize back to LOAD_FAST, without having had any effect.
Beta Was this translation helpful? Give feedback.
All reactions