René's URL Explorer Experiment


Title: gh-142889: Restructure PyDictKeysObject memory layout for simpler access by clintonsteiner · Pull Request #145097 · python/cpython · GitHub

Open Graph Title: gh-142889: Restructure PyDictKeysObject memory layout for simpler access by clintonsteiner · Pull Request #145097 · python/cpython

X Title: gh-142889: Restructure PyDictKeysObject memory layout for simpler access by clintonsteiner · Pull Request #145097 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Restructure dict keys allocation to store dk_indices before the PyDictKeysObject header and keep dk_entries after the header. Update dict index access and related allocation/free/clone paths, adjus...

X Description: Restructure dict keys allocation to store dk_indices before the PyDictKeysObject header and keep dk_entries after the header. Update dict index access and related allocation/free/clone paths, adjus...

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

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:69173bae-d85a-01e9-bbca-1186b7a7042d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id921E:1E9FD2:5525DE:764350:6A511EEA
html-safe-noncead20e54425e2225f255ef8ef0c5d13efb6ce45278eb138ed20f1700ddaaee329
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjFFOjFFOUZEMjo1NTI1REU6NzY0MzUwOjZBNTExRUVBIiwidmlzaXRvcl9pZCI6IjI2MjM1MzI4ODU2NTk5NTA4MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd9016b80c9537998b9089dbc4f85fec862f86023d3873ecb2b0242aef931a625
hovercard-subject-tagpull_request:3312238590
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/145097/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5d84101ba59e0ae04860d08bd708ed497fcb929e1b7b2d248de7ffe2487dd13b/python/cpython/pull/145097
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5d84101ba59e0ae04860d08bd708ed497fcb929e1b7b2d248de7ffe2487dd13b/python/cpython/pull/145097
og:image:altRestructure dict keys allocation to store dk_indices before the PyDictKeysObject header and keep dk_entries after the header. Update dict index access and related allocation/free/clone paths, adjus...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameclintonsteiner
hostnamegithub.com
expected-hostnamegithub.com
Nonef0f0f3a40c5b69803a8255a8e44323880bf9c4db54d5c076f2130bedf2a1dde5
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
release44909533816f7f99ff04e7a0fe692733af67ed84
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/145097#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F145097
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%2F145097
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/145097
Reloadhttps://github.com/python/cpython/pull/145097
Reloadhttps://github.com/python/cpython/pull/145097
Please reload this pagehttps://github.com/python/cpython/pull/145097
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/145097
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
clintonsteinerhttps://github.com/clintonsteiner
python:mainhttps://github.com/python/cpython/tree/main
clintonsteiner:gh-142889https://github.com/clintonsteiner/cpython/tree/gh-142889
Conversationhttps://github.com/python/cpython/pull/145097
Commits12 (12)https://github.com/python/cpython/pull/145097/commits
Checkshttps://github.com/python/cpython/pull/145097/checks
Files changedhttps://github.com/python/cpython/pull/145097/files
gh-142889: Restructure PyDictKeysObject memory layout for simpler accesshttps://github.com/python/cpython/pull/145097#top
clintonsteinerhttps://github.com/clintonsteiner
python:mainhttps://github.com/python/cpython/tree/main
clintonsteiner:gh-142889https://github.com/clintonsteiner/cpython/tree/gh-142889
https://github.com/clintonsteiner
clintonsteinerhttps://github.com/clintonsteiner
Feb 22, 2026https://github.com/python/cpython/pull/145097#issue-3973761892
Please reload this pagehttps://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/145097
https://github.com/clintonsteiner
clintonsteinerhttps://github.com/clintonsteiner
markshannonhttps://github.com/markshannon
methanehttps://github.com/methane
code ownershttps://github.com/python/cpython/blob/2be2dd5fc219a5c252d72f351c85db14314bfca5/.github/CODEOWNERS#L214
February 22, 2026 06:55https://github.com/python/cpython/pull/145097#event-22977187872
https://github.com/apps/python-cla-bot
python-cla-bothttps://github.com/apps/python-cla-bot
Feb 22, 2026https://github.com/python/cpython/pull/145097#issuecomment-3940312200
Please reload this pagehttps://github.com/python/cpython/pull/145097
https://cla.python.org/
Please reload this pagehttps://github.com/python/cpython/pull/145097
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Feb 22, 2026 https://github.com/python/cpython/pull/145097#ref-issue-3739483405
Improved performance and arguably simpler code for dictionaries by changing the keys layout #142889 https://github.com/python/cpython/issues/142889
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
Feb 22, 2026https://github.com/python/cpython/pull/145097#event-22977188199
https://github.com/clintonsteiner
gh-142889https://github.com/python/cpython/issues/142889
: Restructure PyDictKeysObject memory layout for simpler ent…https://github.com/python/cpython/pull/145097/commits/9eec9899ff4d58f139857b8ee108f8f4d7d7e65f
9eec989https://github.com/python/cpython/pull/145097/commits/9eec9899ff4d58f139857b8ee108f8f4d7d7e65f
https://github.com/clintonsteiner
clintonsteinerhttps://github.com/clintonsteiner
force-pushedhttps://github.com/python/cpython/compare/2074c8a833ed7ec4a0cbfb2d8503903840110254..9eec9899ff4d58f139857b8ee108f8f4d7d7e65f
2074c8ahttps://github.com/python/cpython/commit/2074c8a833ed7ec4a0cbfb2d8503903840110254
9eec989https://github.com/python/cpython/commit/9eec9899ff4d58f139857b8ee108f8f4d7d7e65f
Compare https://github.com/python/cpython/compare/2074c8a833ed7ec4a0cbfb2d8503903840110254..9eec9899ff4d58f139857b8ee108f8f4d7d7e65f
February 22, 2026 06:56https://github.com/python/cpython/pull/145097#event-22977203538
clintonsteinerhttps://github.com/clintonsteiner
February 22, 2026 01:11https://github.com/python/cpython/pull/145097#commits-pushed-4602616
https://github.com/clintonsteiner
ci fixes for wasl and c-global checkerhttps://github.com/python/cpython/pull/145097/commits/46026168a48433d16d2b3b5600e16d5d2fc0ff9c
4602616https://github.com/python/cpython/pull/145097/commits/46026168a48433d16d2b3b5600e16d5d2fc0ff9c
https://github.com/clintonsteiner
ci fixes for wasl and c-global checkerhttps://github.com/python/cpython/pull/145097/commits/270837b2a4ae56540b54d2f0dc70444832fc96b4
270837bhttps://github.com/python/cpython/pull/145097/commits/270837b2a4ae56540b54d2f0dc70444832fc96b4
https://github.com/brijkapadia
brijkapadiahttps://github.com/brijkapadia
Feb 22, 2026 https://github.com/python/cpython/pull/145097#pullrequestreview-3837644626
View reviewed changes https://github.com/python/cpython/pull/145097/files/270837b2a4ae56540b54d2f0dc70444832fc96b4
Objects/dictobject.chttps://github.com/python/cpython/pull/145097/files/270837b2a4ae56540b54d2f0dc70444832fc96b4#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
Please reload this pagehttps://github.com/python/cpython/pull/145097
https://github.com/clintonsteiner
address pr commentshttps://github.com/python/cpython/pull/145097/commits/cc0a3561165b4692877d13ba47e80767ccfd86df
cc0a356https://github.com/python/cpython/pull/145097/commits/cc0a3561165b4692877d13ba47e80767ccfd86df
https://github.com/markshannon
markshannonhttps://github.com/markshannon
Mar 11, 2026 https://github.com/python/cpython/pull/145097#pullrequestreview-3930223408
View reviewed changes https://github.com/python/cpython/pull/145097/files/cc0a3561165b4692877d13ba47e80767ccfd86df
markshannonhttps://github.com/markshannon
https://github.com/python/cpython/pull/145097#pullrequestreview-3930223408
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/145097
Include/internal/pycore_dict.hhttps://github.com/python/cpython/pull/145097/files/cc0a3561165b4692877d13ba47e80767ccfd86df#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4
Please reload this pagehttps://github.com/python/cpython/pull/145097
Include/internal/pycore_dict.hhttps://github.com/python/cpython/pull/145097/files/cc0a3561165b4692877d13ba47e80767ccfd86df#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4
Please reload this pagehttps://github.com/python/cpython/pull/145097
Objects/dictobject.chttps://github.com/python/cpython/pull/145097/files/cc0a3561165b4692877d13ba47e80767ccfd86df#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
Please reload this pagehttps://github.com/python/cpython/pull/145097
clintonsteinerhttps://github.com/clintonsteiner
March 11, 2026 14:38https://github.com/python/cpython/pull/145097#commits-pushed-e6754e9
https://github.com/clintonsteiner
gh-142889https://github.com/python/cpython/issues/142889
: Address PR review comments on PyDictKeysObject restructurehttps://github.com/python/cpython/pull/145097/commits/e6754e95a831f96f2d521a84b99fd35f68125f67
e6754e9https://github.com/python/cpython/pull/145097/commits/e6754e95a831f96f2d521a84b99fd35f68125f67
https://github.com/clintonsteiner
correct gbd test usage to use dk_entries instead of dk_indiceshttps://github.com/python/cpython/pull/145097/commits/e9d9ec5265b92d8a922e5ad86c7301dc60492d86
e9d9ec5https://github.com/python/cpython/pull/145097/commits/e9d9ec5265b92d8a922e5ad86c7301dc60492d86
https://github.com/clintonsteiner
fix LOAD_INDEX/STORE_INDEX to use _DK_INDICES_BASE for well-defined p…https://github.com/python/cpython/pull/145097/commits/4c889e8b75c1bc442e940853f7c852a4532aff5f
4c889e8https://github.com/python/cpython/pull/145097/commits/4c889e8b75c1bc442e940853f7c852a4532aff5f
https://github.com/clintonsteiner
fix windows 32 bit: use clang -target i686-pc-windows-msvchttps://github.com/python/cpython/pull/145097/commits/aad4907d0381abc4a4b7d1acbd19454fb40fa426
aad4907https://github.com/python/cpython/pull/145097/commits/aad4907d0381abc4a4b7d1acbd19454fb40fa426
https://github.com/clintonsteiner
Fix gcc warning for empty dict keys initializerhttps://github.com/python/cpython/pull/145097/commits/8e74bdcd47a10216f8fdbb56345faf8c198533e8
8e74bdchttps://github.com/python/cpython/pull/145097/commits/8e74bdcd47a10216f8fdbb56345faf8c198533e8
https://github.com/clintonsteiner
gh-0: Fix dict empty keys initializer braceshttps://github.com/python/cpython/pull/145097/commits/b82ae49a3ccf93dc4b390aeb53f4875e659b2f7c
b82ae49https://github.com/python/cpython/pull/145097/commits/b82ae49a3ccf93dc4b390aeb53f4875e659b2f7c
https://github.com/clintonsteiner
Merge branch 'main' intohttps://github.com/python/cpython/pull/145097/commits/4210757ef294d8a77fce6bda92f8d10e53783fbe
gh-142889https://github.com/python/cpython/issues/142889
4210757https://github.com/python/cpython/pull/145097/commits/4210757ef294d8a77fce6bda92f8d10e53783fbe
https://github.com/clintonsteiner
Merge branch 'main' intohttps://github.com/python/cpython/pull/145097/commits/750c33b2692f9358cda08f4142b02d694984cd8c
gh-142889https://github.com/python/cpython/issues/142889
750c33bhttps://github.com/python/cpython/pull/145097/commits/750c33b2692f9358cda08f4142b02d694984cd8c
https://github.com/clintonsteiner
clintonsteinerhttps://github.com/clintonsteiner
Apr 21, 2026https://github.com/python/cpython/pull/145097#issuecomment-4285142032
@markshannonhttps://github.com/markshannon
Please reload this pagehttps://github.com/python/cpython/pull/145097
https://github.com/clintonsteiner
clintonsteinerhttps://github.com/clintonsteiner
Apr 28, 2026https://github.com/python/cpython/pull/145097#event-24927379778
https://github.com/brijkapadia
brijkapadiahttps://github.com/brijkapadia
May 30, 2026 https://github.com/python/cpython/pull/145097#ref-pullrequest-4555767404
gh-142889: Improve layout of dictionary keys #150640 https://github.com/python/cpython/pull/150640
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%2F145097
https://github.com/markshannon
markshannon https://github.com/markshannon
https://github.com/python/cpython/pull/145097/files/cc0a3561165b4692877d13ba47e80767ccfd86df
https://github.com/methane
methane https://github.com/methane
https://github.com/brijkapadia
brijkapadia https://github.com/brijkapadia
https://github.com/python/cpython/pull/145097/files/270837b2a4ae56540b54d2f0dc70444832fc96b4
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/145097
https://github.com/clintonsteiner
https://github.com/markshannon
https://github.com/brijkapadia
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.