René's URL Explorer Experiment


Title: bpo-44338: Port LOAD_GLOBAL to PEP 659 adaptive interpreter by markshannon · Pull Request #26638 · python/cpython · GitHub

Open Graph Title: bpo-44338: Port LOAD_GLOBAL to PEP 659 adaptive interpreter by markshannon · Pull Request #26638 · python/cpython

X Title: bpo-44338: Port LOAD_GLOBAL to PEP 659 adaptive interpreter by markshannon · Pull Request #26638 · python/cpython

Description: 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 behind a compile-time flag). https://bugs.python.org/issue44338

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

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

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:999d7ca5-882a-d721-7a98-a8a59c5c9055
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id95B6:8CEA6:19CFAE:24FE47:6A57217B
html-safe-nonce191d60630e5da3b9e4272b4e6613f567212181f0778b2291409588e3ca4f6c66
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUI2OjhDRUE2OjE5Q0ZBRToyNEZFNDc6NkE1NzIxN0IiLCJ2aXNpdG9yX2lkIjoiODA1NTMwNzUyNzMxODM0ODE1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac82154809e05246e6107dc69e18ef4d848d20c37dabf9bb7152766c5e037b4057
hovercard-subject-tagpull_request:666679699
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/26638/files
twitter:imagehttps://avatars.githubusercontent.com/u/9448417?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/9448417?s=400&v=4
og:image:altAdds 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98
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
release2576d1f0198cf1588faf2edf27f1ed120903be10
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://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 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%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
Reloadhttps://github.com/python/cpython/pull/26638/files
Reloadhttps://github.com/python/cpython/pull/26638/files
Reloadhttps://github.com/python/cpython/pull/26638/files
Please reload this pagehttps://github.com/python/cpython/pull/26638/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
markshannonhttps://github.com/markshannon
python:mainhttps://github.com/python/cpython/tree/main
faster-cpython:specialize-load-globalhttps://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 pagehttps://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 pagehttps://github.com/python/cpython/pull/26638/files
Please reload this pagehttps://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.hhttps://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.hhttps://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.hhttps://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 GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/26638/files
Lib/opcode.pyhttps://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.rsthttps://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.chttps://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 pagehttps://github.com/python/cpython/pull/26638/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.