| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0e81dbd9-cd15-25cd-53fd-730db870bb8e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DEB4:118815:21372D3:2F45B9F:6A50E888 |
| html-safe-nonce | b819e0c88648aedf786ffa3ca1001d0f2c34a5a98a26f1b69ac6de9c7cd68d15 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUI0OjExODgxNToyMTM3MkQzOjJGNDVCOUY6NkE1MEU4ODgiLCJ2aXNpdG9yX2lkIjoiMjE5MDMxODkwNDgxNDkyMTg2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 585420dbb45f99f011ba4a860f8a31b1218322dcb3235c14eb641ccd6483f598 |
| hovercard-subject-tag | pull_request:3774977818 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/150640/files |
| twitter:image | https://avatars.githubusercontent.com/u/97006829?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/97006829?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 72b13e0e8d0319acdd27a145cfe73f4f06c791713d0ac4690e41fb68ad28cac0 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fb19d617b534959801b4b7453938ecf1dfa22131 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://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 AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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 |
| Reload | https://github.com/python/cpython/pull/150640/files |
| Reload | https://github.com/python/cpython/pull/150640/files |
| Reload | https://github.com/python/cpython/pull/150640/files |
| Please reload this page | https://github.com/python/cpython/pull/150640/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| brijkapadia | https://github.com/brijkapadia |
| python:main | https://github.com/python/cpython/tree/main |
| brijkapadia:dict-keys | https://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 page | https://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 page | https://github.com/python/cpython/pull/150640/files |
| Please reload this page | https://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.h | https://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.py | https://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.rst | https://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.in | https://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.c | https://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.c | https://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.h | https://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 page | https://github.com/python/cpython/pull/150640/files |
| Please reload this page | https://github.com/python/cpython/pull/150640/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |