Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
bpo-43563 : Introduce dedicated opcodes for super calls#24936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
See question on bpo -- why is this important? Do you have performance data to back up that this is an important optimization? |
This PR is stale because it has been open for 30 days with no activity. |
Unless you come up with some benchmark numbers, unfortunately we will have to close this PR. I'll give you a week to let us know what you'd like to do. If you need more time to benchmark, just let us know -- but if we don't hear from you after a week we'll close it. If you change your mind later or you're on vacation or something like that, I will still be notified of comments added to the issue after it's closed, so don't hesitate to say something! |
I'm interested to see how this compares with adaptive specialization of PEP 659. The expression
on main this compiles as:
So main has a (small) advantage in dispatching. Assuming we specialize both |
This is superseded by#103497. |
Uh oh!
There was an error while loading.Please reload this page.
Add
LOAD_METHOD_SUPER
andLOAD_ATTR_SUPER
opcodes to optimize method calls and attribute lookups when receiver issuper()
.https://bugs.python.org/issue43563