Skip to content

gh-142889: Improve layout of dictionary keys - #150640

Open
brijkapadia wants to merge 13 commits into
python:mainfrom
brijkapadia:dict-keys
Open

gh-142889: Improve layout of dictionary keys#150640
brijkapadia wants to merge 13 commits into
python:mainfrom
brijkapadia:dict-keys

Conversation

@brijkapadia

@brijkapadiabrijkapadia commented May 30, 2026

Copy link
Copy Markdown
Contributor

This is based on the work of @clintonsteiner in PR #145097. Most of it is very similar although I did make my own changes.

This PR updates the memory layout of _dictkeysobject to improve performance.

@brijkapadia
brijkapadia marked this pull request as draft May 30, 2026 22:01
@brijkapadia
brijkapadia marked this pull request as ready for review May 31, 2026 12:15
@markshannon

Copy link
Copy Markdown
Member

Have you asked @clintonsteiner if it is OK for you to take over their work?

@brijkapadia

Copy link
Copy Markdown
ContributorAuthor

@markshannon No, I didn't. I thought it would be okay to create a new PR since the head repo of #145097 was deleted a month ago. However, I can close this if you think this is unfair.

@clintonsteiner Do you want to continue this?

Comment threadObjects/dictobject.c Outdated
Comment threadObjects/dictobject.c Outdated
Comment threadObjects/dictobject.c Outdated
@brijkapadia

Copy link
Copy Markdown
ContributorAuthor

@markshannon, a reminder about this pr, whenever you get a chance.

Sign up for freeto 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

@brijkapadia@markshannon@eendebakpt