FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-100239: replace BINARY_SUBSCR & family by BINARY_OP with oparg NB_SUBSCR by iritkatriel · Pull Request #129700 · python/cpython · GitHub

/ cpython Public

gh-100239: replace BINARY_SUBSCR & family by BINARY_OP with oparg NB_SUBSCR - #129700

Merged
iritkatriel merged 17 commits into
python:mainfrom
iritkatriel:binary_subscr_to_op
Feb 7, 2025
Merged

gh-100239: replace BINARY_SUBSCR & family by BINARY_OP with oparg NB_SUBSCR#129700
iritkatriel merged 17 commits into
python:mainfrom
iritkatriel:binary_subscr_to_op

Conversation

iritkatriel commented Feb 5, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

Comment thread Python/specialize.c
Py_DECREF(descriptor);
return SPEC_FAIL_OTHER;
}
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Fix it in another PR.
I think it best to make the change in one PR and the refactoring in another.

markshannon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Copy link
Copy Markdown
Member

👍 The stats are as expected.

iritkatriel enabled auto-merge (squash) February 7, 2025 18:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL