| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:999d7ca5-882a-d721-7a98-a8a59c5c9055 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 95B6:8CEA6:19CFAE:24FE47:6A57217B |
| html-safe-nonce | 191d60630e5da3b9e4272b4e6613f567212181f0778b2291409588e3ca4f6c66 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUI2OjhDRUE2OjE5Q0ZBRToyNEZFNDc6NkE1NzIxN0IiLCJ2aXNpdG9yX2lkIjoiODA1NTMwNzUyNzMxODM0ODE1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 82154809e05246e6107dc69e18ef4d848d20c37dabf9bb7152766c5e037b4057 |
| hovercard-subject-tag | pull_request:666679699 |
| 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/26638/files |
| twitter:image | https://avatars.githubusercontent.com/u/9448417?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/9448417?s=400&v=4 |
| og:image:alt | Adds two specializations of LOAD_GLOBAL:
LOAD_GLOBAL_MODULE for module variables
LOAD_GLOBAL_BUILTIN for builtins.
Removes the old "opcache" mechanism.
Adds a few more stats (hidden... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| 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 | 2576d1f0198cf1588faf2edf27f1ed120903be10 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/26638/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F26638%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%2F26638%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/26638/files |
| Reload | https://github.com/python/cpython/pull/26638/files |
| Reload | https://github.com/python/cpython/pull/26638/files |
| Please reload this page | https://github.com/python/cpython/pull/26638/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/26638/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 |
| markshannon | https://github.com/markshannon |
| python:main | https://github.com/python/cpython/tree/main |
| faster-cpython:specialize-load-global | https://github.com/faster-cpython/cpython/tree/specialize-load-global |
|
Conversation
16
| https://github.com/python/cpython/pull/26638 |
|
Commits
11
| https://github.com/python/cpython/pull/26638/commits |
|
Checks
0
| https://github.com/python/cpython/pull/26638/checks |
|
Files changed
| https://github.com/python/cpython/pull/26638/files |
| Please reload this page | https://github.com/python/cpython/pull/26638/files |
|
bpo-44338: Port LOAD_GLOBAL to PEP 659 adaptive interpreter
| https://github.com/python/cpython/pull/26638/files#top |
|
Show all changes
11 commits
| https://github.com/python/cpython/pull/26638/files |
|
6e57707
Add specializations of LOAD_GLOBAL.
markshannon Jun 2, 2021
| https://github.com/python/cpython/pull/26638/commits/6e57707f51ab5779f9f4142ef1765126a6c19033 |
|
b970dfc
Add more stats.
markshannon Jun 4, 2021
| https://github.com/python/cpython/pull/26638/commits/b970dfc98accb760c13ef48095c7f5348f834e7b |
|
2b7aad1
Remove old opcache; it is no longer used.
markshannon Jun 8, 2021
| https://github.com/python/cpython/pull/26638/commits/2b7aad15891e2d0a90549732f2e3fc8a7f30faf3 |
|
20daa07
Use _PyDict_GetItemHint instead of _Py_dict_lookup
markshannon Jun 9, 2021
| https://github.com/python/cpython/pull/26638/commits/20daa07e62e5f681ea416d0a62929fae148eb2c1 |
|
704d217
Check globals version as well as builtins
markshannon Jun 10, 2021
| https://github.com/python/cpython/pull/26638/commits/704d2170a60096a9784aee0c0ac3d5e36b094035 |
|
a7746e0
Correctly round sizeof() for code object.
markshannon Jun 10, 2021
| https://github.com/python/cpython/pull/26638/commits/a7746e0499a9cb4b9ce97aebcc3cd157791f0737 |
|
8ad3e55
Add NEWS
markshannon Jun 10, 2021
| https://github.com/python/cpython/pull/26638/commits/8ad3e55f5673f6bdefe58587335c21885cd68ed1 |
|
aec7872
Remove some code duplication and fix up stats printing.
markshannon Jun 11, 2021
| https://github.com/python/cpython/pull/26638/commits/aec787278ed7d1a88880ac4a8ffd0435df63a396 |
|
b4431be
Add casts and comment on which type of cache entries are used.
markshannon Jun 11, 2021
| https://github.com/python/cpython/pull/26638/commits/b4431be2521ede0d2bd1701bd61f2c1654aee572 |
|
f043576
Fix a couple of copy and paste errors
markshannon Jun 11, 2021
| https://github.com/python/cpython/pull/26638/commits/f043576ed38ddecd6c0d3e909a124d10a9877fdc |
|
72a7bcc
Merge branch 'main' into specialize-load-global
markshannon Jun 14, 2021
| https://github.com/python/cpython/pull/26638/commits/72a7bccdf3e1a6c57d57eb71e1f04180fca0366b |
|
Clear filters
| https://github.com/python/cpython/pull/26638/files |
| Please reload this page | https://github.com/python/cpython/pull/26638/files |
| Please reload this page | https://github.com/python/cpython/pull/26638/files |
|
code.h
| https://github.com/python/cpython/pull/26638/files#diff-b0fcb97ad50c6f97009037466945581575bc3b18633dc8b32a38f633950144c2 |
|
pycore_code.h
| https://github.com/python/cpython/pull/26638/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
|
opcode.h
| https://github.com/python/cpython/pull/26638/files#diff-1cd1f0bb26c3fbaa279f83ee2bfe1d9072da7af07407111c79039c66034c57ed |
|
opcode.py
| https://github.com/python/cpython/pull/26638/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb |
|
2021-06-10-10-06-18.bpo-44338.c4Myr4.rst
| https://github.com/python/cpython/pull/26638/files#diff-67c2e068141c8c772ffbc514ed5fab7979fdffef959267d084f83a821d940a4b |
|
codeobject.c
| https://github.com/python/cpython/pull/26638/files#diff-6f869eb8beb7cbe4bc6817584b99ad567f88962fa67f7beca25d009dc401234d |
|
ceval.c
| https://github.com/python/cpython/pull/26638/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de |
|
opcode_targets.h
| https://github.com/python/cpython/pull/26638/files#diff-d3363a4083b77b9157d0bf07c2e87f3d3464a8b4360d5d23b07bbb23061f007a |
|
specialize.c
| https://github.com/python/cpython/pull/26638/files#diff-22e653d878778ca28317261f7826545288d02fd9980cf485d0329f28a34993f2 |
| Include/cpython/code.h | https://github.com/python/cpython/pull/26638/files#diff-b0fcb97ad50c6f97009037466945581575bc3b18633dc8b32a38f633950144c2 |
|
View file
| https://github.com/faster-cpython/cpython/blob/72a7bccdf3e1a6c57d57eb71e1f04180fca0366b/Include/cpython/code.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/26638/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/26638/files#diff-b0fcb97ad50c6f97009037466945581575bc3b18633dc8b32a38f633950144c2 |
|
| https://github.com/python/cpython/pull/26638/files#diff-b0fcb97ad50c6f97009037466945581575bc3b18633dc8b32a38f633950144c2 |
| Include/internal/pycore_code.h | https://github.com/python/cpython/pull/26638/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
|
View file
| https://github.com/faster-cpython/cpython/blob/72a7bccdf3e1a6c57d57eb71e1f04180fca0366b/Include/internal/pycore_code.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/26638/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/26638/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
|
| https://github.com/python/cpython/pull/26638/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
|
| https://github.com/python/cpython/pull/26638/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
|
| https://github.com/python/cpython/pull/26638/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
|
| https://github.com/python/cpython/pull/26638/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
|
| https://github.com/python/cpython/pull/26638/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
|
| https://github.com/python/cpython/pull/26638/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
| Include/opcode.h | https://github.com/python/cpython/pull/26638/files#diff-1cd1f0bb26c3fbaa279f83ee2bfe1d9072da7af07407111c79039c66034c57ed |
|
View file
| https://github.com/faster-cpython/cpython/blob/72a7bccdf3e1a6c57d57eb71e1f04180fca0366b/Include/opcode.h |
|
Open in desktop
| https://desktop.github.com |
| how customized files appear on GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/python/cpython/pull/26638/files |
| Lib/opcode.py | https://github.com/python/cpython/pull/26638/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb |
|
View file
| https://github.com/faster-cpython/cpython/blob/72a7bccdf3e1a6c57d57eb71e1f04180fca0366b/Lib/opcode.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/26638/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/26638/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb |
| Misc/NEWS.d/next/Core and Builtins/2021-06-10-10-06-18.bpo-44338.c4Myr4.rst | https://github.com/python/cpython/pull/26638/files#diff-67c2e068141c8c772ffbc514ed5fab7979fdffef959267d084f83a821d940a4b |
|
View file
| https://github.com/faster-cpython/cpython/blob/72a7bccdf3e1a6c57d57eb71e1f04180fca0366b/Misc/NEWS.d/next/Core%20and%20Builtins/2021-06-10-10-06-18.bpo-44338.c4Myr4.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/26638/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L214 |
| Objects/codeobject.c | https://github.com/python/cpython/pull/26638/files#diff-6f869eb8beb7cbe4bc6817584b99ad567f88962fa67f7beca25d009dc401234d |
|
View file
| https://github.com/faster-cpython/cpython/blob/72a7bccdf3e1a6c57d57eb71e1f04180fca0366b/Objects/codeobject.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/26638/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/26638/files#diff-6f869eb8beb7cbe4bc6817584b99ad567f88962fa67f7beca25d009dc401234d |
|
| https://github.com/python/cpython/pull/26638/files#diff-6f869eb8beb7cbe4bc6817584b99ad567f88962fa67f7beca25d009dc401234d |
|
| https://github.com/python/cpython/pull/26638/files#diff-6f869eb8beb7cbe4bc6817584b99ad567f88962fa67f7beca25d009dc401234d |
|
| https://github.com/python/cpython/pull/26638/files#diff-6f869eb8beb7cbe4bc6817584b99ad567f88962fa67f7beca25d009dc401234d |
|
| https://github.com/python/cpython/pull/26638/files#diff-6f869eb8beb7cbe4bc6817584b99ad567f88962fa67f7beca25d009dc401234d |
|
| https://github.com/python/cpython/pull/26638/files#diff-6f869eb8beb7cbe4bc6817584b99ad567f88962fa67f7beca25d009dc401234d |
|
| https://github.com/python/cpython/pull/26638/files#diff-6f869eb8beb7cbe4bc6817584b99ad567f88962fa67f7beca25d009dc401234d |
|
| https://github.com/python/cpython/pull/26638/files#diff-6f869eb8beb7cbe4bc6817584b99ad567f88962fa67f7beca25d009dc401234d |
| Please reload this page | https://github.com/python/cpython/pull/26638/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 |