René's URL Explorer Experiment


Title: gh-142889: Improve layout of dictionary keys by brijkapadia · Pull Request #150640 · python/cpython · GitHub

Open Graph Title: gh-142889: Improve layout of dictionary keys by brijkapadia · Pull Request #150640 · python/cpython

X Title: gh-142889: Improve layout of dictionary keys by brijkapadia · Pull Request #150640 · python/cpython

Description: 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. Issue: gh-142889

Open Graph Description: 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 performanc...

X Description: 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 performanc...

Opengraph URL: https://github.com/python/cpython/pull/150640

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:0e81dbd9-cd15-25cd-53fd-730db870bb8e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDEB4:118815:21372D3:2F45B9F:6A50E888
html-safe-nonceb819e0c88648aedf786ffa3ca1001d0f2c34a5a98a26f1b69ac6de9c7cd68d15
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUI0OjExODgxNToyMTM3MkQzOjJGNDVCOUY6NkE1MEU4ODgiLCJ2aXNpdG9yX2lkIjoiMjE5MDMxODkwNDgxNDkyMTg2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac585420dbb45f99f011ba4a860f8a31b1218322dcb3235c14eb641ccd6483f598
hovercard-subject-tagpull_request:3774977818
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/150640/files
twitter:imagehttps://avatars.githubusercontent.com/u/97006829?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/97006829?s=400&v=4
og:image:altThis 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 performanc...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None72b13e0e8d0319acdd27a145cfe73f4f06c791713d0ac4690e41fb68ad28cac0
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasefb19d617b534959801b4b7453938ecf1dfa22131
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/150640/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F150640%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F150640%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/150640/files
Reloadhttps://github.com/python/cpython/pull/150640/files
Reloadhttps://github.com/python/cpython/pull/150640/files
Please reload this pagehttps://github.com/python/cpython/pull/150640/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/150640/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
brijkapadiahttps://github.com/brijkapadia
python:mainhttps://github.com/python/cpython/tree/main
brijkapadia:dict-keyshttps://github.com/brijkapadia/cpython/tree/dict-keys
Conversation 6 https://github.com/python/cpython/pull/150640
Commits 11 https://github.com/python/cpython/pull/150640/commits
Checks 69 https://github.com/python/cpython/pull/150640/checks
Files changed https://github.com/python/cpython/pull/150640/files
Please reload this pagehttps://github.com/python/cpython/pull/150640/files
gh-142889: Improve layout of dictionary keys https://github.com/python/cpython/pull/150640/files#top
Show all changes 11 commits https://github.com/python/cpython/pull/150640/files
f7f967e gh-142889: Improve layout of dictionary keys brijkapadia May 30, 2026 https://github.com/python/cpython/pull/150640/commits/f7f967e9f6f4514654253a1c2c94685ec4b3bfa3
66659cf 📜🤖 Added by blurb_it. blurb-it[bot] May 30, 2026 https://github.com/python/cpython/pull/150640/commits/66659cf7fd4e9e69837d46c4fa7a25133a20d24d
13b8d7e update union brijkapadia May 30, 2026 https://github.com/python/cpython/pull/150640/commits/13b8d7eb23a9e4c7f2477ad6b992e5739507f38f
4476844 Update test/gdb brijkapadia May 31, 2026 https://github.com/python/cpython/pull/150640/commits/44768445f683eef7b4c69ac01f67039d73b30549
fce9aa9 update sizeof calculation brijkapadia May 31, 2026 https://github.com/python/cpython/pull/150640/commits/fce9aa9179d6b98a269a7c432b9c9b69646e8f98
1c0ee1b Apply suggestions from code review brijkapadia Jun 19, 2026 https://github.com/python/cpython/pull/150640/commits/1c0ee1b1ebd1ae4938febeb777c7da363acae0a8
ae9ad1d Merge remote-tracking branch 'upstream/main' into dict-keys brijkapadia Jun 26, 2026 https://github.com/python/cpython/pull/150640/commits/ae9ad1d034eb3ee187617491a7eaaad760e71df4
708bbae fix const test brijkapadia Jun 26, 2026 https://github.com/python/cpython/pull/150640/commits/708bbae645c515d90460e4693702279faab39ae0
3c15497 Merge remote-tracking branch 'upstream/main' into dict-keys brijkapadia Jul 8, 2026 https://github.com/python/cpython/pull/150640/commits/3c15497c611b2b58bfa4d2b4276166cc423c5380
3be6705 small changes brijkapadia Jul 8, 2026 https://github.com/python/cpython/pull/150640/commits/3be6705523a6a2b54570c4873652143e119dd711
398e7c8 fix error brijkapadia Jul 8, 2026 https://github.com/python/cpython/pull/150640/commits/398e7c872c1ded10c2a21fc8133e1e3b5a8ef068
Clear filters https://github.com/python/cpython/pull/150640/files
Please reload this pagehttps://github.com/python/cpython/pull/150640/files
Please reload this pagehttps://github.com/python/cpython/pull/150640/files
pycore_dict.h https://github.com/python/cpython/pull/150640/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4
test_dict.py https://github.com/python/cpython/pull/150640/files#diff-a040eea55332ac71f2f5db3966f7261f844ceceaac675cc0f30eb973d2593a26
2026-05-30-21-37-54.gh-issue-142889.LvkzYw.rst https://github.com/python/cpython/pull/150640/files#diff-4a5d9ea4e2b843b1791a75be0b13d1e9fb8961777a9e5d6577cb384deae7d411
Setup.stdlib.in https://github.com/python/cpython/pull/150640/files#diff-93b54a98829ea89eaf6335c02f546511f7780d865131407436b10a401ecd375c
_testinternalcapi.c https://github.com/python/cpython/pull/150640/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126
dict.c https://github.com/python/cpython/pull/150640/files#diff-d997cfe1568717b2e623c2ca49475bf7187f93b665f2b4b7ea12c0ead1ae474e
parts.h https://github.com/python/cpython/pull/150640/files#diff-41dbad38bccbb3dcd8994e2fe0e2673cab29faefc2912d1c02340e211ff8673f
dictobject.c https://github.com/python/cpython/pull/150640/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
_testinternalcapi.vcxproj https://github.com/python/cpython/pull/150640/files#diff-08566dae0ca25227bd1cb8ccdf68f73345c4a4cfa5dedf19315359a4eef6c710
_testinternalcapi.vcxproj.filters https://github.com/python/cpython/pull/150640/files#diff-4fa7325f4c1045bd2dedb7c74bfcba90496a7e3d14083038fc1a6935ac6e8a50
libpython.py https://github.com/python/cpython/pull/150640/files#diff-d6a780608c6679847e005fc5a55c5749ce3c68c031e75e63b0c5b45e57e25758
Include/internal/pycore_dict.hhttps://github.com/python/cpython/pull/150640/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4
View file https://github.com/python/cpython/blob/398e7c872c1ded10c2a21fc8133e1e3b5a8ef068/Include/internal/pycore_dict.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/150640/{{ revealButtonHref }}
https://github.com/python/cpython/pull/150640/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4
https://github.com/python/cpython/pull/150640/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4
https://github.com/python/cpython/pull/150640/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4
Lib/test/test_dict.pyhttps://github.com/python/cpython/pull/150640/files#diff-a040eea55332ac71f2f5db3966f7261f844ceceaac675cc0f30eb973d2593a26
View file https://github.com/python/cpython/blob/398e7c872c1ded10c2a21fc8133e1e3b5a8ef068/Lib/test/test_dict.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/150640/{{ revealButtonHref }}
https://github.com/python/cpython/pull/150640/files#diff-a040eea55332ac71f2f5db3966f7261f844ceceaac675cc0f30eb973d2593a26
https://github.com/python/cpython/pull/150640/files#diff-a040eea55332ac71f2f5db3966f7261f844ceceaac675cc0f30eb973d2593a26
Misc/NEWS.d/next/Core_and_Builtins/2026-05-30-21-37-54.gh-issue-142889.LvkzYw.rsthttps://github.com/python/cpython/pull/150640/files#diff-4a5d9ea4e2b843b1791a75be0b13d1e9fb8961777a9e5d6577cb384deae7d411
View file https://github.com/python/cpython/blob/398e7c872c1ded10c2a21fc8133e1e3b5a8ef068/Misc/NEWS.d/next/Core_and_Builtins/2026-05-30-21-37-54.gh-issue-142889.LvkzYw.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/150640/{{ revealButtonHref }}
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L87
Modules/Setup.stdlib.inhttps://github.com/python/cpython/pull/150640/files#diff-93b54a98829ea89eaf6335c02f546511f7780d865131407436b10a401ecd375c
View file https://github.com/python/cpython/blob/398e7c872c1ded10c2a21fc8133e1e3b5a8ef068/Modules/Setup.stdlib.in
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/150640/{{ revealButtonHref }}
https://github.com/python/cpython/pull/150640/files#diff-93b54a98829ea89eaf6335c02f546511f7780d865131407436b10a401ecd375c
https://github.com/python/cpython/pull/150640/files#diff-93b54a98829ea89eaf6335c02f546511f7780d865131407436b10a401ecd375c
Modules/_testinternalcapi.chttps://github.com/python/cpython/pull/150640/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126
View file https://github.com/python/cpython/blob/398e7c872c1ded10c2a21fc8133e1e3b5a8ef068/Modules/_testinternalcapi.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/150640/{{ revealButtonHref }}
https://github.com/python/cpython/pull/150640/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126
https://github.com/python/cpython/pull/150640/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126
Modules/_testinternalcapi/dict.chttps://github.com/python/cpython/pull/150640/files#diff-d997cfe1568717b2e623c2ca49475bf7187f93b665f2b4b7ea12c0ead1ae474e
View file https://github.com/python/cpython/blob/398e7c872c1ded10c2a21fc8133e1e3b5a8ef068/Modules/_testinternalcapi/dict.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/150640/{{ revealButtonHref }}
Modules/_testinternalcapi/parts.hhttps://github.com/python/cpython/pull/150640/files#diff-41dbad38bccbb3dcd8994e2fe0e2673cab29faefc2912d1c02340e211ff8673f
View file https://github.com/python/cpython/blob/398e7c872c1ded10c2a21fc8133e1e3b5a8ef068/Modules/_testinternalcapi/parts.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/150640/{{ revealButtonHref }}
https://github.com/python/cpython/pull/150640/files#diff-41dbad38bccbb3dcd8994e2fe0e2673cab29faefc2912d1c02340e211ff8673f
Please reload this pagehttps://github.com/python/cpython/pull/150640/files
Please reload this pagehttps://github.com/python/cpython/pull/150640/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.