-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-100239: replace BINARY_SUBSCR & family by BINARY_OP with oparg NB_SUBSCR #129700
Conversation
iritkatriel
commented
Feb 5, 2025
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: Specialize long tail of binary operations using a table. #100239
ff0d788
to
d9b0d1b
Compare
Py_DECREF(descriptor); | ||
return SPEC_FAIL_OTHER; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is quite a bit or repetition between this function and _Py_Specialize_BinaryOp
. I would like to merge them into one function, but not sure it should be in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix it in another PR.
I think it best to make the change in one PR and the refactoring in another.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good.
I'd like to check the stats before merging, to make sure all the specializations are still happening.
I'm not worried about the performance numbers; those will just be an artifact of code layout changes.
👍 The stats are as expected. |