René's URL Explorer Experiment


Title: gh-97912: Avoid quadratic behavior when adding LOAD_FAST_CHECK by sweeneyde · Pull Request #97952 · python/cpython · GitHub

Open Graph Title: gh-97912: Avoid quadratic behavior when adding LOAD_FAST_CHECK by sweeneyde · Pull Request #97952 · python/cpython

X Title: gh-97912: Avoid quadratic behavior when adding LOAD_FAST_CHECK by sweeneyde · Pull Request #97952 · python/cpython

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

Open Graph Description: Issue: Bytecode compile times are O(nlocals**2) #97912

X Description: Issue: Bytecode compile times are O(nlocals**2) #97912

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
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:4de05be4-6ac6-5e2a-c03f-96d25cfda38e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9808:3B07B3:542031:69B285:6B02040F
html-safe-noncef371c2034ae1d8dd54e4f8c9842bd1e7e32c07750a79a4b44ce870fc9db6ca37
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODA4OjNCMDdCMzo1NDIwMzE6NjlCMjg1OjZCMDIwNDBGIiwidmlzaXRvcl9pZCI6IjgxNTUwNDI1MzkxNjI5NjA5MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9cc519d1ff3ef19163cba68d7bff46b922ae19269826148d5f2d1ae99f26e36b
hovercard-subject-tagpull_request:1078300092
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/97952/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/843f0753d6201c390ec7b40a51f37cd9927b355385d52ce012a41983394b8f3f/python/cpython/pull/97952
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/843f0753d6201c390ec7b40a51f37cd9927b355385d52ce012a41983394b8f3f/python/cpython/pull/97952
og:image:altIssue: Bytecode compile times are O(nlocals**2) #97912
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesweeneyde
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/97952#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F97952
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F97952
Sign uphttps://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/97952
Reloadhttps://github.com/python/cpython/pull/97952
Reloadhttps://github.com/python/cpython/pull/97952
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
sweeneydehttps://github.com/sweeneyde
python:mainhttps://github.com/python/cpython/tree/main
sweeneyde:load_fast_check_faster2https://github.com/sweeneyde/cpython/tree/load_fast_check_faster2
Conversationhttps://github.com/python/cpython/pull/97952
Commits15 (15)https://github.com/python/cpython/pull/97952/commits
Checkshttps://github.com/python/cpython/pull/97952/checks
Files changedhttps://github.com/python/cpython/pull/97952/files
gh-97912: Avoid quadratic behavior when adding LOAD_FAST_CHECKhttps://github.com/python/cpython/pull/97952#top
sweeneydehttps://github.com/sweeneyde
python:mainhttps://github.com/python/cpython/tree/main
sweeneyde:load_fast_check_faster2https://github.com/sweeneyde/cpython/tree/load_fast_check_faster2
https://github.com/sweeneyde
sweeneydehttps://github.com/sweeneyde
Oct 6, 2022https://github.com/python/cpython/pull/97952#issue-1398872532
Please reload this pagehttps://github.com/python/cpython/pull/97952
Bytecode compile times are O(nlocals**2) #97912https://github.com/python/cpython/issues/97912
Please reload this pagehttps://github.com/python/cpython/pull/97952
sweeneydehttps://github.com/sweeneyde
October 6, 2022 01:38https://github.com/python/cpython/pull/97952#commits-pushed-3f88cba
https://github.com/sweeneyde
Use 64-bit masks, ignore locals beyond 64.https://github.com/python/cpython/pull/97952/commits/3f88cba010028c2ef6bc312156b3c37c5566cee6
3f88cbahttps://github.com/python/cpython/pull/97952/commits/3f88cba010028c2ef6bc312156b3c37c5566cee6
https://github.com/sweeneyde
Add test case for too many localshttps://github.com/python/cpython/pull/97952/commits/cc52638a2b4ed2f5516123b7269811580b96b917
cc52638https://github.com/python/cpython/pull/97952/commits/cc52638a2b4ed2f5516123b7269811580b96b917
https://github.com/sweeneyde
sweeneydehttps://github.com/sweeneyde
brandtbucherhttps://github.com/brandtbucher
iritkatrielhttps://github.com/iritkatriel
markshannonhttps://github.com/markshannon
code ownershttps://github.com/python/cpython/blob/0d68879104dfb392d31e52e25dcb0661801a0249/.github/CODEOWNERS#L24
October 6, 2022 06:08https://github.com/python/cpython/pull/97952#event-7530764127
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
Oct 6, 2022https://github.com/python/cpython/pull/97952#event-7530764445
https://github.com/sweeneyde
sweeneydehttps://github.com/sweeneyde
Oct 6, 2022https://github.com/python/cpython/pull/97952#issuecomment-1269411181
Please reload this pagehttps://github.com/python/cpython/pull/97952
https://github.com/apps/blurb-it
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/97952/commits/c54ea39895cc057cd9eac9c64dbc54f66e541d8c
c54ea39https://github.com/python/cpython/pull/97952/commits/c54ea39895cc057cd9eac9c64dbc54f66e541d8c
https://github.com/sweeneyde
sweeneydehttps://github.com/sweeneyde
Oct 6, 2022 https://github.com/python/cpython/pull/97952#pullrequestreview-1132394051
View reviewed changes https://github.com/python/cpython/pull/97952/files/c54ea39895cc057cd9eac9c64dbc54f66e541d8c
Python/compile.chttps://github.com/python/cpython/pull/97952/files/c54ea39895cc057cd9eac9c64dbc54f66e541d8c#diff-ebc983d9f91e5bcf73500e377ac65e85863c4f77fd5b6b6caf4fcdf7c0f0b057
Please reload this pagehttps://github.com/python/cpython/pull/97952
sweeneydehttps://github.com/sweeneyde
October 6, 2022 21:27https://github.com/python/cpython/pull/97952#commits-pushed-92d6ed1
https://github.com/sweeneyde
Do within-basicblock analysis beyond the first 64 locals.https://github.com/python/cpython/pull/97952/commits/92d6ed1b21f38e37795eaf1aed14143cef55799b
92d6ed1https://github.com/python/cpython/pull/97952/commits/92d6ed1b21f38e37795eaf1aed14143cef55799b
https://github.com/sweeneyde
Save a word in basicblockshttps://github.com/python/cpython/pull/97952/commits/5d9cd8fd261a6e006b5f3733776c67fb2125edcf
5d9cd8fhttps://github.com/python/cpython/pull/97952/commits/5d9cd8fd261a6e006b5f3733776c67fb2125edcf
https://github.com/ambv
ambvhttps://github.com/ambv
Oct 7, 2022https://github.com/python/cpython/pull/97952#issuecomment-1271961502
https://raw.githubusercontent.com/sympy/sympy/master/sympy/integrals/rubi/rules/sine.pyhttps://raw.githubusercontent.com/sympy/sympy/master/sympy/integrals/rubi/rules/sine.py
Benchmark at 63 localshttps://gist.github.com/ambv/d86183a0e5165674a71e2567b2588472
Please reload this pagehttps://github.com/python/cpython/pull/97952
sweeneydehttps://github.com/sweeneyde
October 7, 2022 16:44https://github.com/python/cpython/pull/97952#commits-pushed-a334420
https://github.com/sweeneyde
Refactor to add fast_scan_many_locals functionhttps://github.com/python/cpython/pull/97952/commits/a33442064bd9f7d6c9fb49604c7e927feb11c54e
a334420https://github.com/python/cpython/pull/97952/commits/a33442064bd9f7d6c9fb49604c7e927feb11c54e
https://github.com/sweeneyde
Cover more branches for >64 locals workhttps://github.com/python/cpython/pull/97952/commits/aa58a516c8879022912e0f8afbdbc8e29559663d
aa58a51https://github.com/python/cpython/pull/97952/commits/aa58a516c8879022912e0f8afbdbc8e29559663d
https://github.com/sweeneyde
rename: b_unsafe_locals_maskhttps://github.com/python/cpython/pull/97952/commits/b07e5202c2167a85189c90390193e09d24442d7f
b07e520https://github.com/python/cpython/pull/97952/commits/b07e5202c2167a85189c90390193e09d24442d7f
https://github.com/sweeneyde
nlocals==0 checkhttps://github.com/python/cpython/pull/97952/commits/01bcfb5d38e5612bdb5bba226cf67d0a54ed5176
01bcfb5https://github.com/python/cpython/pull/97952/commits/01bcfb5d38e5612bdb5bba226cf67d0a54ed5176
https://github.com/sweeneyde
Merge branch 'load_fast_check_faster2' of github.com:sweeneyde/cpytho…https://github.com/python/cpython/pull/97952/commits/c6987d312bfacfc8dfe334e0fcf3686cb1c840b9
c6987d3https://github.com/python/cpython/pull/97952/commits/c6987d312bfacfc8dfe334e0fcf3686cb1c840b9
https://github.com/sweeneyde
Reorder caseshttps://github.com/python/cpython/pull/97952/commits/7c442955e153d64b0fe07caeaf91c6ab7b3919d7
7c44295https://github.com/python/cpython/pull/97952/commits/7c442955e153d64b0fe07caeaf91c6ab7b3919d7
https://github.com/sweeneyde
sweeneydehttps://github.com/sweeneyde
Oct 7, 2022https://github.com/python/cpython/pull/97952#issuecomment-1272122979
Please reload this pagehttps://github.com/python/cpython/pull/97952
Please reload this pagehttps://github.com/python/cpython/pull/97952
sweeneydehttps://github.com/sweeneyde
October 14, 2022 19:26https://github.com/python/cpython/pull/97952#commits-pushed-a28e4c2
https://github.com/sweeneyde
Merge remote-tracking branch 'upstream/main' into load_fast_check_fas…https://github.com/python/cpython/pull/97952/commits/a28e4c2bd7fb53b3f86226c32fb0c73affe95557
a28e4c2https://github.com/python/cpython/pull/97952/commits/a28e4c2bd7fb53b3f86226c32fb0c73affe95557
https://github.com/sweeneyde
improve commentshttps://github.com/python/cpython/pull/97952/commits/d206d28c19cc979818b7436528837314829ab656
d206d28https://github.com/python/cpython/pull/97952/commits/d206d28c19cc979818b7436528837314829ab656
https://github.com/sweeneyde
Merge branch 'main' into load_fast_check_faster2https://github.com/python/cpython/pull/97952/commits/b07183c6252988dfac0fe176101bb3b1522a2ef8
b07183chttps://github.com/python/cpython/pull/97952/commits/b07183c6252988dfac0fe176101bb3b1522a2ef8
https://github.com/sweeneyde
sweeneydehttps://github.com/sweeneyde
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Oct 20, 2022https://github.com/python/cpython/pull/97952#event-7626579964
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Oct 20, 2022https://github.com/python/cpython/pull/97952#issuecomment-1284815003
@sweeneydehttps://github.com/sweeneyde
b07183chttps://github.com/python/cpython/commit/b07183c6252988dfac0fe176101bb3b1522a2ef8
Please reload this pagehttps://github.com/python/cpython/pull/97952
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
Oct 20, 2022https://github.com/python/cpython/pull/97952#event-7626580151
https://github.com/sweeneyde
sweeneydehttps://github.com/sweeneyde
Oct 20, 2022https://github.com/python/cpython/pull/97952#issuecomment-1285955113
@iritkatrielhttps://github.com/iritkatriel
@markshannonhttps://github.com/markshannon
Please reload this pagehttps://github.com/python/cpython/pull/97952
https://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
Oct 20, 2022https://github.com/python/cpython/pull/97952#issuecomment-1285989225
@iritkatrielhttps://github.com/iritkatriel
@markshannonhttps://github.com/markshannon
Please reload this pagehttps://github.com/python/cpython/pull/97952
https://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
Oct 20, 2022 https://github.com/python/cpython/pull/97952#pullrequestreview-1149797876
View reviewed changes https://github.com/python/cpython/pull/97952/files/b07183c6252988dfac0fe176101bb3b1522a2ef8
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Oct 20, 2022https://github.com/python/cpython/pull/97952#event-7634007570
https://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
Oct 20, 2022 https://github.com/python/cpython/pull/97952#pullrequestreview-1149800158
View reviewed changes https://github.com/python/cpython/pull/97952/files/b07183c6252988dfac0fe176101bb3b1522a2ef8
Python/compile.chttps://github.com/python/cpython/pull/97952/files/b07183c6252988dfac0fe176101bb3b1522a2ef8#diff-ebc983d9f91e5bcf73500e377ac65e85863c4f77fd5b6b6caf4fcdf7c0f0b057
Please reload this pagehttps://github.com/python/cpython/pull/97952
https://github.com/sweeneyde
IS_SUPERINSTRUCTION_OPCODEhttps://github.com/python/cpython/pull/97952/commits/096650f0884e14d0df1fe03a14f0274b06eb9ce3
096650fhttps://github.com/python/cpython/pull/97952/commits/096650f0884e14d0df1fe03a14f0274b06eb9ce3
https://github.com/sweeneyde
sweeneydehttps://github.com/sweeneyde
39bc70ehttps://github.com/python/cpython/commit/39bc70e267929600057d62103739b7160e69dc8b
Oct 20, 2022https://github.com/python/cpython/pull/97952#event-7635543170
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Oct 20, 2022https://github.com/python/cpython/pull/97952#event-7635543459
https://github.com/sweeneyde
sweeneydehttps://github.com/sweeneyde
October 20, 2022 22:27https://github.com/python/cpython/pull/97952#event-7635543588
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%2F97952
https://github.com/iritkatriel
iritkatriel https://github.com/iritkatriel
https://github.com/python/cpython/pull/97952/files/b07183c6252988dfac0fe176101bb3b1522a2ef8
https://github.com/arhadthedev
arhadthedev https://github.com/arhadthedev
https://github.com/python/cpython/pull/97952/files/c54ea39895cc057cd9eac9c64dbc54f66e541d8c
https://github.com/brandtbucher
brandtbucher https://github.com/brandtbucher
https://github.com/markshannon
markshannon https://github.com/markshannon
Please reload this pagehttps://github.com/python/cpython/pull/97952
Please reload this pagehttps://github.com/python/cpython/pull/97952
https://github.com/sweeneyde
https://github.com/ambv
https://github.com/bedevere-bot
https://github.com/iritkatriel
https://github.com/arhadthedev
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.