Skip to content

gh-141510: Optimize frozendict(frozendict) - #145592

Merged
vstinner merged 5 commits into
python:mainfrom
vstinner:frozendict_new_same
Mar 9, 2026
Merged

vstinner merged 5 commits into
python:mainfrom
vstinner:frozendict_new_same

Conversation

@vstinner

@vstinner vstinner commented Mar 6, 2026 •

Copy link
Copy Markdown
Member

Return the same object unmodified if it's exactly the frozendict type.

Return the same object unmodified if it's exactly the frozendict
type.
@vstinner

vstinner commented Mar 6, 2026

Copy link
Copy Markdown
Member Author
Comment thread Objects/dictobject.c Resolved
@vstinner
vstinner requested a review from ZeroIntensity as a code owner March 6, 2026 16:34
@vstinner
vstinner merged commit 0dfe649 into python:main Mar 9, 2026
48 checks passed
@vstinner
vstinner deleted the frozendict_new_same branch March 9, 2026 14:47
@vstinner

vstinner commented Mar 9, 2026

Copy link
Copy Markdown
Member Author

Merged. Thanks for reviews.

ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
Return the same object unmodified if it's exactly the frozendict
type.

Optimize also PyFrozenDict_New(frozendict).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants