Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-141510: Optimize frozendict(frozendict)#145592

Merged
vstinner merged 5 commits into
python:mainpython/cpython:mainfrom
vstinner:frozendict_new_samevstinner/cpython:frozendict_new_sameCopy head branch name to clipboard
Mar 9, 2026
Merged

gh-141510: Optimize frozendict(frozendict)#145592
vstinner merged 5 commits into
python:mainpython/cpython:mainfrom
vstinner:frozendict_new_samevstinner/cpython:frozendict_new_sameCopy head branch name to clipboard

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

cc @encukou

Comment thread Objects/dictobject.c
@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
52 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.