René's URL Explorer Experiment


Title: bpo-46841: Use *inline* caching for `BINARY_OP` by brandtbucher · Pull Request #31543 · python/cpython · GitHub

Open Graph Title: bpo-46841: Use *inline* caching for `BINARY_OP` by brandtbucher · Pull Request #31543 · python/cpython

X Title: bpo-46841: Use *inline* caching for `BINARY_OP` by brandtbucher · Pull Request #31543 · python/cpython

Description: Here's a sort-of-rough first pass at implementing this idea. BINARY_OP is easy to start with, since it only uses its cache for the adaptive counter member. Initial perf testing doesn't show any imp...

Open Graph Description: Here's a sort-of-rough first pass at implementing this idea. BINARY_OP is easy to start with, since it only uses its cache for the adaptive counter member. Initial perf testing doesn't show...

X Description: Here's a sort-of-rough first pass at implementing this idea. BINARY_OP is easy to start with, since it only uses its cache for the adaptive counter member. Initial perf testing doesn&#3...

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

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:62a47573-3988-d11c-dc8c-ddb7e8b2108f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDAB2:2BBD61:16D254A:1E58685:696AE49C
html-safe-nonce5572aece977901fe9870e5b20ef1df502b007fae278580640e5e52aa89d68aeb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUIyOjJCQkQ2MToxNkQyNTRBOjFFNTg2ODU6Njk2QUU0OUMiLCJ2aXNpdG9yX2lkIjoiMjE3MDM1MzUwMDIxNjI4ODQxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb986b7e2339cf983ef373c777ccae9639a292357eaacfc1aa601911d1a4510de
hovercard-subject-tagpull_request:862004438
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/31543/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/18af19c78dc1fce292cea93240fe9a043166e52351d3857e72a105af72b2c053/python/cpython/pull/31543
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/18af19c78dc1fce292cea93240fe9a043166e52351d3857e72a105af72b2c053/python/cpython/pull/31543
og:image:altHere's a sort-of-rough first pass at implementing this idea. BINARY_OP is easy to start with, since it only uses its cache for the adaptive counter member. Initial perf testing doesn't show...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrandtbucher
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
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
release3d84d50b3c75fa36755c3cf392edbc09e626f979
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/31543#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F31543
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2F31543
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/31543
Reloadhttps://github.com/python/cpython/pull/31543
Reloadhttps://github.com/python/cpython/pull/31543
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/31543
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k 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.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/31543
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 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
Jump to bottomhttps://github.com/python/cpython/pull/31543#issue-comment-box
markshannonhttps://github.com/markshannon
python:mainhttps://github.com/python/cpython/tree/main
brandtbucher:inline-cacheshttps://github.com/brandtbucher/cpython/tree/inline-caches
bpo-46841: Use *inline* caching for BINARY_OP https://github.com/python/cpython/pull/31543#top
markshannonhttps://github.com/markshannon
python:mainhttps://github.com/python/cpython/tree/main
brandtbucher:inline-cacheshttps://github.com/brandtbucher/cpython/tree/inline-caches
Conversation 10 https://github.com/python/cpython/pull/31543
Commits 8 https://github.com/python/cpython/pull/31543/commits
Checks 0 https://github.com/python/cpython/pull/31543/checks
Files changed https://github.com/python/cpython/pull/31543/files
Please reload this pagehttps://github.com/python/cpython/pull/31543
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/brandtbucher
brandtbucherhttps://github.com/brandtbucher
Feb 24, 2022https://github.com/python/cpython/pull/31543#issue-1148783154
Please reload this pagehttps://github.com/python/cpython/pull/31543
https://bugs.python.org/issue46841https://bugs.python.org/issue46841
Please reload this pagehttps://github.com/python/cpython/pull/31543
brandtbucherhttps://github.com/brandtbucher
February 23, 2022 14:51https://github.com/python/cpython/pull/31543#commits-pushed-42c9907
https://github.com/brandtbucher
Use inline caching for BINARY_OP instructionshttps://github.com/python/cpython/pull/31543/commits/42c990713f2935df3ab200449d475c3bdac7e588
42c9907https://github.com/python/cpython/pull/31543/commits/42c990713f2935df3ab200449d475c3bdac7e588
https://github.com/brandtbucher
Bump the magic numberhttps://github.com/python/cpython/pull/31543/commits/a446858e4262c254c7271d9919aab2d09b2f7010
a446858https://github.com/python/cpython/pull/31543/commits/a446858e4262c254c7271d9919aab2d09b2f7010
https://github.com/brandtbucher
Fixuphttps://github.com/python/cpython/pull/31543/commits/0393b0d93a29f38ed2776d86036aba5975ad95d1
0393b0dhttps://github.com/python/cpython/pull/31543/commits/0393b0d93a29f38ed2776d86036aba5975ad95d1
https://github.com/brandtbucher
*facepalm*https://github.com/python/cpython/pull/31543/commits/8fd41b770d5dfaa2377f6ad01a994ff98fa1c778
8fd41b7https://github.com/python/cpython/pull/31543/commits/8fd41b770d5dfaa2377f6ad01a994ff98fa1c778
https://github.com/brandtbucher
blurb addhttps://github.com/python/cpython/pull/31543/commits/4cc3467c43b314fc522c1e21d3fcd758e425a177
4cc3467https://github.com/python/cpython/pull/31543/commits/4cc3467c43b314fc522c1e21d3fcd758e425a177
https://github.com/brandtbucher
brandtbucherhttps://github.com/brandtbucher
markshannonhttps://github.com/markshannon
code ownershttps://github.com/python/cpython/blob/7fce1063b6e5a366f8504e039a8ccdd6944625cd/.github/CODEOWNERS#L118
February 24, 2022 02:18https://github.com/python/cpython/pull/31543#event-6129202775
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Feb 24, 2022https://github.com/python/cpython/pull/31543#event-6129202851
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Feb 24, 2022https://github.com/python/cpython/pull/31543#event-6129202882
https://github.com/markshannon
markshannonhttps://github.com/markshannon
Feb 24, 2022 https://github.com/python/cpython/pull/31543#pullrequestreview-892291368
View reviewed changes https://github.com/python/cpython/pull/31543/files/4cc3467c43b314fc522c1e21d3fcd758e425a177
Python/ceval.chttps://github.com/python/cpython/pull/31543/files/4cc3467c43b314fc522c1e21d3fcd758e425a177#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
Please reload this pagehttps://github.com/python/cpython/pull/31543
https://github.com/markshannon
markshannonhttps://github.com/markshannon
Feb 24, 2022 https://github.com/python/cpython/pull/31543#pullrequestreview-892292788
View reviewed changes https://github.com/python/cpython/pull/31543/files/4cc3467c43b314fc522c1e21d3fcd758e425a177
Include/internal/pycore_code.hhttps://github.com/python/cpython/pull/31543/files/4cc3467c43b314fc522c1e21d3fcd758e425a177#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8
Please reload this pagehttps://github.com/python/cpython/pull/31543
https://github.com/markshannon
markshannonhttps://github.com/markshannon
Feb 24, 2022 https://github.com/python/cpython/pull/31543#pullrequestreview-892301285
View reviewed changes https://github.com/python/cpython/pull/31543/files/4cc3467c43b314fc522c1e21d3fcd758e425a177
Python/specialize.chttps://github.com/python/cpython/pull/31543/files/4cc3467c43b314fc522c1e21d3fcd758e425a177#diff-22e653d878778ca28317261f7826545288d02fd9980cf485d0329f28a34993f2
Please reload this pagehttps://github.com/python/cpython/pull/31543
https://github.com/markshannon
markshannonhttps://github.com/markshannon
Feb 24, 2022 https://github.com/python/cpython/pull/31543#pullrequestreview-892301895
View reviewed changes https://github.com/python/cpython/pull/31543/files/4cc3467c43b314fc522c1e21d3fcd758e425a177
Python/ceval.chttps://github.com/python/cpython/pull/31543/files/4cc3467c43b314fc522c1e21d3fcd758e425a177#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
Please reload this pagehttps://github.com/python/cpython/pull/31543
https://github.com/markshannon
markshannonhttps://github.com/markshannon
Feb 24, 2022 https://github.com/python/cpython/pull/31543#pullrequestreview-892303984
View reviewed changes https://github.com/python/cpython/pull/31543/files/4cc3467c43b314fc522c1e21d3fcd758e425a177
Doc/library/dis.rsthttps://github.com/python/cpython/pull/31543/files/4cc3467c43b314fc522c1e21d3fcd758e425a177#diff-eaa488fc50d23b30ca8b24ab19e9c91c1c941339847af993e908f006eec0653b
markshannonhttps://github.com/markshannon
Feb 24, 2022https://github.com/python/cpython/pull/31543#discussion_r813783812
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/31543
brandtbucherhttps://github.com/brandtbucher
Feb 24, 2022https://github.com/python/cpython/pull/31543#discussion_r814217283
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/31543
markshannonhttps://github.com/markshannon
Feb 25, 2022https://github.com/python/cpython/pull/31543#discussion_r814715742
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/31543
https://github.com/markshannon
markshannonhttps://github.com/markshannon
Feb 24, 2022https://github.com/python/cpython/pull/31543#issuecomment-1049755641
https://bugs.python.org/issue46841https://bugs.python.org/issue46841
Please reload this pagehttps://github.com/python/cpython/pull/31543
brandtbucherhttps://github.com/brandtbucher
February 24, 2022 11:36https://github.com/python/cpython/pull/31543#commits-pushed-a59d97c
https://github.com/brandtbucher
Use dedicated cache structureshttps://github.com/python/cpython/pull/31543/commits/a59d97c271d62e9a664d5c116d72ecfa47cbff1a
a59d97chttps://github.com/python/cpython/pull/31543/commits/a59d97c271d62e9a664d5c116d72ecfa47cbff1a
https://github.com/brandtbucher
Catch up with mainhttps://github.com/python/cpython/pull/31543/commits/6b0e5badf2c75684ee40c5f1beac2968dd745e10
6b0e5bahttps://github.com/python/cpython/pull/31543/commits/6b0e5badf2c75684ee40c5f1beac2968dd745e10
https://github.com/brandtbucher
brandtbucherhttps://github.com/brandtbucher
markshannonhttps://github.com/markshannon
February 24, 2022 20:05https://github.com/python/cpython/pull/31543#event-6134716806
https://github.com/brandtbucher
Use a run-time assert instead of a build-time onehttps://github.com/python/cpython/pull/31543/commits/1aa079c324cdc987cd1f8039f0eb1051e5b6ce35
1aa079chttps://github.com/python/cpython/pull/31543/commits/1aa079c324cdc987cd1f8039f0eb1051e5b6ce35
https://github.com/brandtbucher
brandtbucherhttps://github.com/brandtbucher
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Feb 24, 2022https://github.com/python/cpython/pull/31543#event-6135215867
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Feb 24, 2022https://github.com/python/cpython/pull/31543#issuecomment-1050284906
@brandtbucherhttps://github.com/brandtbucher
1aa079chttps://github.com/python/cpython/commit/1aa079c324cdc987cd1f8039f0eb1051e5b6ce35
Please reload this pagehttps://github.com/python/cpython/pull/31543
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Feb 24, 2022https://github.com/python/cpython/pull/31543#event-6135216012
https://github.com/markshannon
markshannonhttps://github.com/markshannon
Feb 25, 2022https://github.com/python/cpython/pull/31543#issuecomment-1050799974
Please reload this pagehttps://github.com/python/cpython/pull/31543
https://github.com/markshannon
markshannonhttps://github.com/markshannon
0f41aachttps://github.com/python/cpython/commit/0f41aac109c45aa468c432f798947c54d4178b3d
Feb 25, 2022https://github.com/python/cpython/pull/31543#event-6138729426
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Feb 25, 2022https://github.com/python/cpython/pull/31543#event-6138729613
asvetlovhttps://github.com/asvetlov
Feb 26, 2022 https://github.com/python/cpython/pull/31543#ref-commit-404bca3
https://github.com/brandtbucher
https://github.com/asvetlov
bpo-46841https://bugs.python.org/issue?@action=redirect&bpo=46841
: Use *inline* caching forhttps://github.com/python/cpython/commit/404bca3ee87b2eeb0a6e959f63dfff86611ba80e
BINARY_OPhttps://github.com/python/cpython/commit/404bca3ee87b2eeb0a6e959f63dfff86611ba80e
(https://github.com/python/cpython/commit/404bca3ee87b2eeb0a6e959f63dfff86611ba80e
GH-31543https://github.com/python/cpython/pull/31543
)https://github.com/python/cpython/commit/404bca3ee87b2eeb0a6e959f63dfff86611ba80e
404bca3https://github.com/python/cpython/commit/404bca3ee87b2eeb0a6e959f63dfff86611ba80e
https://github.com/brandtbucher
brandtbucherhttps://github.com/brandtbucher
Mar 2, 2022 https://github.com/python/cpython/pull/31543#ref-issue-1157464303
Inline caching faster-cpython/ideas#310 https://github.com/faster-cpython/ideas/issues/310
https://github.com/brandtbucher
brandtbucherhttps://github.com/brandtbucher
Apr 10, 2022 https://github.com/python/cpython/pull/31543#ref-issue-1199075909
Inline bytecode caches #90997 https://github.com/python/cpython/issues/90997
https://github.com/brandtbucher
brandtbucherhttps://github.com/brandtbucher
July 21, 2022 20:14https://github.com/python/cpython/pull/31543#event-7041177043
https://github.com/ezio-melotti
ezio-melottihttps://github.com/ezio-melotti
Dec 9, 2022 https://github.com/python/cpython/pull/31543#ref-issue-1486445479
Fix links to missing CPython files python/devguide#1003 https://github.com/python/devguide/issues/1003
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%2F31543
https://github.com/markshannon
markshannon https://github.com/markshannon
Please reload this pagehttps://github.com/python/cpython/pull/31543
https://github.com/brandtbucher
https://github.com/markshannon
https://github.com/bedevere-bot
https://github.com/the-knights-who-say-ni
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.