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

gh-132657: Avoid locking in frozenset.__contains__ by eendebakpt · Pull Request #132659 · python/cpython · GitHub

/ cpython Public

gh-132657: Avoid locking in frozenset.__contains__ - #132659

Merged
kumaraditya303 merged 2 commits into
python:mainfrom
eendebakpt:frozenset_contains
Apr 18, 2025
Merged

gh-132657: Avoid locking in frozenset.__contains__#132659
kumaraditya303 merged 2 commits into
python:mainfrom
eendebakpt:frozenset_contains

Conversation

eendebakpt commented Apr 17, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Contributor

To my eyes, the new code looks identical to the existing set___contains___impl.

Copy link
Copy Markdown
Contributor Author

Almost identical, except that the set___contains___impl has an extra line @critical_section. This results in a Py_BEGIN_CRITICAL_SECTION in the clinic generated code.

kumaraditya303 merged commit e77d678 into python:main Apr 18, 2025
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL