Skip to content
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

Merged
merged 17 commits into from
Feb 7, 2025

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Feb 5, 2025

Py_DECREF(descriptor);
return SPEC_FAIL_OTHER;
}
}
Copy link
Member Author

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.

@markshannon

Copy link
Member

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.

Copy link
Member

@markshannon markshannon left a 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.

@markshannon
Copy link
Member

👍 The stats are as expected.

@iritkatriel iritkatriel enabled auto-merge (squash) February 7, 2025 18:42
@iritkatriel iritkatriel merged commit a1417b2 into python:main Feb 7, 2025
58 of 62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants