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: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

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/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:4eec9668-a0f6-b3c2-c452-b24da8e4df33
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD4D8:2E23E:2C376E4:3DA977C:6A50D6B2
html-safe-nonce6201138be8769f5d18b9204db95b6b7ab39ed820caa07deeb8443bca65622e18
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEQ4OjJFMjNFOjJDMzc2RTQ6M0RBOTc3Qzo2QTUwRDZCMiIsInZpc2l0b3JfaWQiOiIxNDgxNjU3NTk4ODUxNzMzMTcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac29dd39876ffb0e0b828e2fab078862ff0a351e7ada88fa1bd7bcdcd985f57e64
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/150640/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/e0b332d545ec9f3fb550bc17f302392375e29826999b0bbcc09c3a6476586ee4/python/cpython/pull/150640
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e0b332d545ec9f3fb550bc17f302392375e29826999b0bbcc09c3a6476586ee4/python/cpython/pull/150640
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:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrijkapadia
hostnamegithub.com
expected-hostnamegithub.com
None72b13e0e8d0319acdd27a145cfe73f4f06c791713d0ac4690e41fb68ad28cac0
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release73ad5c4eaffed7bb3637024653eabdbca84a855e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/150640#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F150640
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
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/150640
Reloadhttps://github.com/python/cpython/pull/150640
Reloadhttps://github.com/python/cpython/pull/150640
Please reload this pagehttps://github.com/python/cpython/pull/150640
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/150640
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.7k 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
brijkapadiahttps://github.com/brijkapadia
python:mainhttps://github.com/python/cpython/tree/main
brijkapadia:dict-keyshttps://github.com/brijkapadia/cpython/tree/dict-keys
Conversationhttps://github.com/python/cpython/pull/150640
Commits11 (11)https://github.com/python/cpython/pull/150640/commits
Checkshttps://github.com/python/cpython/pull/150640/checks
Files changedhttps://github.com/python/cpython/pull/150640/files
gh-142889: Improve layout of dictionary keyshttps://github.com/python/cpython/pull/150640#top
brijkapadiahttps://github.com/brijkapadia
python:mainhttps://github.com/python/cpython/tree/main
brijkapadia:dict-keyshttps://github.com/brijkapadia/cpython/tree/dict-keys
https://github.com/brijkapadia
brijkapadiahttps://github.com/brijkapadia
May 30, 2026https://github.com/python/cpython/pull/150640#issue-4555767404
Please reload this pagehttps://github.com/python/cpython/pull/150640
@clintonsteinerhttps://github.com/clintonsteiner
#145097https://github.com/python/cpython/pull/145097
Improved performance and arguably simpler code for dictionaries by changing the keys layout #142889https://github.com/python/cpython/issues/142889
Please reload this pagehttps://github.com/python/cpython/pull/150640
https://github.com/brijkapadia
pythongh-142889https://github.com/python/cpython/issues/142889
: Improve layout of dictionary keyshttps://github.com/python/cpython/pull/150640/commits/f7f967e9f6f4514654253a1c2c94685ec4b3bfa3
f7f967ehttps://github.com/python/cpython/pull/150640/commits/f7f967e9f6f4514654253a1c2c94685ec4b3bfa3
https://github.com/brijkapadia
brijkapadiahttps://github.com/brijkapadia
AA-Turnerhttps://github.com/AA-Turner
emmatypinghttps://github.com/emmatyping
erlend-aaslandhttps://github.com/erlend-aasland
itamarohttps://github.com/itamaro
markshannonhttps://github.com/markshannon
methanehttps://github.com/methane
code ownershttps://github.com/python/cpython/blob/61ec3c2065deeea935f14e11e17d2b4e8b893133/.github/CODEOWNERS#L189
May 30, 2026 21:36https://github.com/python/cpython/pull/150640#event-26148313933
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
May 30, 2026https://github.com/python/cpython/pull/150640#event-26148315011
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
May 30, 2026 https://github.com/python/cpython/pull/150640#ref-issue-3739483405
Improved performance and arguably simpler code for dictionaries by changing the keys layout #142889 https://github.com/python/cpython/issues/142889
blurb-ithttps://github.com/apps/blurb-it
May 30, 2026 21:37https://github.com/python/cpython/pull/150640#commits-pushed-66659cf
https://github.com/apps/blurb-it
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/150640/commits/66659cf7fd4e9e69837d46c4fa7a25133a20d24d
66659cfhttps://github.com/python/cpython/pull/150640/commits/66659cf7fd4e9e69837d46c4fa7a25133a20d24d
https://github.com/brijkapadia
update unionhttps://github.com/python/cpython/pull/150640/commits/13b8d7eb23a9e4c7f2477ad6b992e5739507f38f
13b8d7ehttps://github.com/python/cpython/pull/150640/commits/13b8d7eb23a9e4c7f2477ad6b992e5739507f38f
https://github.com/brijkapadia
brijkapadiahttps://github.com/brijkapadia
May 30, 2026 22:01https://github.com/python/cpython/pull/150640#event-26148580202
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
May 30, 2026https://github.com/python/cpython/pull/150640#event-26148580692
brijkapadiahttps://github.com/brijkapadia
May 31, 2026 07:10https://github.com/python/cpython/pull/150640#commits-pushed-4476844
https://github.com/brijkapadia
Update test/gdbhttps://github.com/python/cpython/pull/150640/commits/44768445f683eef7b4c69ac01f67039d73b30549
4476844https://github.com/python/cpython/pull/150640/commits/44768445f683eef7b4c69ac01f67039d73b30549
https://github.com/brijkapadia
update sizeof calculationhttps://github.com/python/cpython/pull/150640/commits/fce9aa9179d6b98a269a7c432b9c9b69646e8f98
fce9aa9https://github.com/python/cpython/pull/150640/commits/fce9aa9179d6b98a269a7c432b9c9b69646e8f98
https://github.com/brijkapadia
brijkapadiahttps://github.com/brijkapadia
May 31, 2026 12:15https://github.com/python/cpython/pull/150640#event-26156834276
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
May 31, 2026https://github.com/python/cpython/pull/150640#event-26156834968
https://github.com/markshannon
markshannonhttps://github.com/markshannon
Jun 2, 2026https://github.com/python/cpython/pull/150640#issuecomment-4601202495
@clintonsteinerhttps://github.com/clintonsteiner
Please reload this pagehttps://github.com/python/cpython/pull/150640
https://github.com/brijkapadia
brijkapadiahttps://github.com/brijkapadia
Jun 2, 2026https://github.com/python/cpython/pull/150640#issuecomment-4601870873
@markshannonhttps://github.com/markshannon
#145097https://github.com/python/cpython/pull/145097
@clintonsteinerhttps://github.com/clintonsteiner
Please reload this pagehttps://github.com/python/cpython/pull/150640
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Jun 19, 2026 https://github.com/python/cpython/pull/150640#pullrequestreview-4534707916
View reviewed changes https://github.com/python/cpython/pull/150640/files/fce9aa9179d6b98a269a7c432b9c9b69646e8f98
Objects/dictobject.chttps://github.com/python/cpython/pull/150640/files/fce9aa9179d6b98a269a7c432b9c9b69646e8f98#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
Please reload this pagehttps://github.com/python/cpython/pull/150640
Objects/dictobject.chttps://github.com/python/cpython/pull/150640/files/fce9aa9179d6b98a269a7c432b9c9b69646e8f98#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
Please reload this pagehttps://github.com/python/cpython/pull/150640
Objects/dictobject.chttps://github.com/python/cpython/pull/150640/files/fce9aa9179d6b98a269a7c432b9c9b69646e8f98#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
Please reload this pagehttps://github.com/python/cpython/pull/150640
brijkapadiahttps://github.com/brijkapadia
June 19, 2026 15:37https://github.com/python/cpython/pull/150640#commits-pushed-1c0ee1b
https://github.com/brijkapadia
https://github.com/eendebakpt
Apply suggestions from code reviewhttps://github.com/python/cpython/pull/150640/commits/1c0ee1b1ebd1ae4938febeb777c7da363acae0a8
1c0ee1bhttps://github.com/python/cpython/pull/150640/commits/1c0ee1b1ebd1ae4938febeb777c7da363acae0a8
https://github.com/brijkapadia
Merge remote-tracking branch 'upstream/main' into dict-keyshttps://github.com/python/cpython/pull/150640/commits/ae9ad1d034eb3ee187617491a7eaaad760e71df4
ae9ad1dhttps://github.com/python/cpython/pull/150640/commits/ae9ad1d034eb3ee187617491a7eaaad760e71df4
https://github.com/brijkapadia
fix const testhttps://github.com/python/cpython/pull/150640/commits/708bbae645c515d90460e4693702279faab39ae0
708bbaehttps://github.com/python/cpython/pull/150640/commits/708bbae645c515d90460e4693702279faab39ae0
https://github.com/brijkapadia
Merge remote-tracking branch 'upstream/main' into dict-keyshttps://github.com/python/cpython/pull/150640/commits/3c15497c611b2b58bfa4d2b4276166cc423c5380
3c15497https://github.com/python/cpython/pull/150640/commits/3c15497c611b2b58bfa4d2b4276166cc423c5380
https://github.com/brijkapadia
small changeshttps://github.com/python/cpython/pull/150640/commits/3be6705523a6a2b54570c4873652143e119dd711
3be6705https://github.com/python/cpython/pull/150640/commits/3be6705523a6a2b54570c4873652143e119dd711
https://github.com/brijkapadia
fix errorhttps://github.com/python/cpython/pull/150640/commits/398e7c872c1ded10c2a21fc8133e1e3b5a8ef068
398e7c8https://github.com/python/cpython/pull/150640/commits/398e7c872c1ded10c2a21fc8133e1e3b5a8ef068
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F150640
https://github.com/eendebakpt
eendebakpt https://github.com/eendebakpt
https://github.com/python/cpython/pull/150640/files/fce9aa9179d6b98a269a7c432b9c9b69646e8f98
https://github.com/methane
methane https://github.com/methane
https://github.com/markshannon
markshannon https://github.com/markshannon
https://github.com/erlend-aasland
erlend-aasland https://github.com/erlend-aasland
https://github.com/AA-Turner
AA-Turner https://github.com/AA-Turner
https://github.com/emmatyping
emmatyping https://github.com/emmatyping
https://github.com/itamaro
itamaro https://github.com/itamaro
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Please reload this pagehttps://github.com/python/cpython/pull/150640
https://github.com/brijkapadia
https://github.com/markshannon
https://github.com/eendebakpt
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.