René's URL Explorer Experiment


Title: GH-123040: Specialize shadowed `LOAD_ATTR`. by markshannon · Pull Request #123219 · python/cpython · GitHub

Open Graph Title: GH-123040: Specialize shadowed `LOAD_ATTR`. by markshannon · Pull Request #123219 · python/cpython

X Title: GH-123040: Specialize shadowed `LOAD_ATTR`. by markshannon · Pull Request #123219 · python/cpython

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

Open Graph Description: This PR specializes LOAD_ATTR for shadowed attributes, where the shadowing doesn't change the attribute. Stats show a 30% reduction in specialization failures for LOAD_ATTR. Performance might s...

X Description: This PR specializes LOAD_ATTR for shadowed attributes, where the shadowing doesn't change the attribute. Stats show a 30% reduction in specialization failures for LOAD_ATTR. Performance mig...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:65c76412-eff3-d789-8e62-53baa9db08ef
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC786:41260:F8E4D3:16B48A6:6A4E3286
html-safe-nonce33ca65310f1af16d1af06fcb8235af49727cd96434db5f9d191b6b536aaf9746
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzg2OjQxMjYwOkY4RTREMzoxNkI0OEE2OjZBNEUzMjg2IiwidmlzaXRvcl9pZCI6IjU1NzI3NzMzMTczNDgwNDU0NDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac106dc53ee9e51a1f741abd3b47b25e7c418321a15a92ca11f00818c9622a5e5a
hovercard-subject-tagpull_request:2031636041
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/123219/commits
twitter:imagehttps://opengraph.githubassets.com/499b5321ffb40b08908114437d44a1dd086cac12fa5d26c5bf831575c2a98233/python/cpython/pull/123219
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/499b5321ffb40b08908114437d44a1dd086cac12fa5d26c5bf831575c2a98233/python/cpython/pull/123219
og:image:altThis PR specializes LOAD_ATTR for shadowed attributes, where the shadowing doesn't change the attribute. Stats show a 30% reduction in specialization failures for LOAD_ATTR. Performance might s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemarkshannon
hostnamegithub.com
expected-hostnamegithub.com
None030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0
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
release42a6d378d7587a44c93aca255096cd66b7c8eb2d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/123219/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F123219%2Fcommits
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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%2F123219%2Fcommits
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%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/123219/commits
Reloadhttps://github.com/python/cpython/pull/123219/commits
Reloadhttps://github.com/python/cpython/pull/123219/commits
Please reload this pagehttps://github.com/python/cpython/pull/123219/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/123219/commits
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k 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
markshannonhttps://github.com/markshannon
python:mainhttps://github.com/python/cpython/tree/main
faster-cpython:specialize-shadowed-load-attrhttps://github.com/faster-cpython/cpython/tree/specialize-shadowed-load-attr
Conversationhttps://github.com/python/cpython/pull/123219
Commits12 (12)https://github.com/python/cpython/pull/123219/commits
Checkshttps://github.com/python/cpython/pull/123219/checks
Files changedhttps://github.com/python/cpython/pull/123219/files
GH-123040: Specialize shadowed LOAD_ATTR.https://github.com/python/cpython/pull/123219/commits#top
markshannonhttps://github.com/markshannon
python:mainhttps://github.com/python/cpython/tree/main
faster-cpython:specialize-shadowed-load-attrhttps://github.com/faster-cpython/cpython/tree/specialize-shadowed-load-attr
Specialize LOAD_ATTR for instance values, even when shadowing class attribute. Provided that class attribute is not a data descriptorhttps://github.com/python/cpython/pull/123219/commits/5e4c3d3a70d94c54f2b5626b35f4d9780aee2a86
https://github.com/markshannon
markshannonhttps://github.com/python/cpython/commits?author=markshannon
5e4c3d3https://github.com/python/cpython/pull/123219/commits/5e4c3d3a70d94c54f2b5626b35f4d9780aee2a86
https://github.com/python/cpython/tree/5e4c3d3a70d94c54f2b5626b35f4d9780aee2a86
Don't count as shadowed unless optimization failshttps://github.com/python/cpython/pull/123219/commits/a983591215d42f846521d8ff8c8ad88ecf57b028
https://github.com/markshannon
markshannonhttps://github.com/python/cpython/commits?author=markshannon
a983591https://github.com/python/cpython/pull/123219/commits/a983591215d42f846521d8ff8c8ad88ecf57b028
https://github.com/python/cpython/tree/a983591215d42f846521d8ff8c8ad88ecf57b028
Add LOAD_ATTR_CLASS_WITH_METACLASS_CHECK specialization and handle class attributes with metaclasses or shadowed attributes.https://github.com/python/cpython/pull/123219/commits/c0b471104d40470d4039574abdf30fa4ed565745
https://github.com/markshannon
markshannonhttps://github.com/python/cpython/commits?author=markshannon
c0b4711https://github.com/python/cpython/pull/123219/commits/c0b471104d40470d4039574abdf30fa4ed565745
https://github.com/python/cpython/tree/c0b471104d40470d4039574abdf30fa4ed565745
Merge branch 'main' into specialize-shadowed-load-attrhttps://github.com/python/cpython/pull/123219/commits/5dfc5299953e85145f5a02379023ef0b55eb7a8c
https://github.com/markshannon
markshannonhttps://github.com/python/cpython/commits?author=markshannon
5dfc529https://github.com/python/cpython/pull/123219/commits/5dfc5299953e85145f5a02379023ef0b55eb7a8c
https://github.com/python/cpython/tree/5dfc5299953e85145f5a02379023ef0b55eb7a8c
Merge branch 'specialize-load-attr-class-shadowed' into specialize-shadowed-load-attrhttps://github.com/python/cpython/pull/123219/commits/b0f4953c078c387e30a76993b53f8c6a288b8ad5
https://github.com/markshannon
markshannonhttps://github.com/python/cpython/commits?author=markshannon
b0f4953https://github.com/python/cpython/pull/123219/commits/b0f4953c078c387e30a76993b53f8c6a288b8ad5
https://github.com/python/cpython/tree/b0f4953c078c387e30a76993b53f8c6a288b8ad5
Differentiate between split keys and non-string keys in statshttps://github.com/python/cpython/pull/123219/commits/6f4843a44111f3b04f137d7bfc1380837070df54
https://github.com/markshannon
markshannonhttps://github.com/python/cpython/commits?author=markshannon
6f4843ahttps://github.com/python/cpython/pull/123219/commits/6f4843a44111f3b04f137d7bfc1380837070df54
https://github.com/python/cpython/tree/6f4843a44111f3b04f137d7bfc1380837070df54
Merge branch 'main' into specialize-shadowed-load-attrhttps://github.com/python/cpython/pull/123219/commits/02137b30a615915ea3664b636d6ce60fbcc27d3b
https://github.com/markshannon
markshannonhttps://github.com/python/cpython/commits?author=markshannon
02137b3https://github.com/python/cpython/pull/123219/commits/02137b30a615915ea3664b636d6ce60fbcc27d3b
https://github.com/python/cpython/tree/02137b30a615915ea3664b636d6ce60fbcc27d3b
Reorganize codehttps://github.com/python/cpython/pull/123219/commits/ba7b63c2aec5a721ba9c33cd14862756d4fb12b5
https://github.com/markshannon
markshannonhttps://github.com/python/cpython/commits?author=markshannon
ba7b63chttps://github.com/python/cpython/pull/123219/commits/ba7b63c2aec5a721ba9c33cd14862756d4fb12b5
https://github.com/python/cpython/tree/ba7b63c2aec5a721ba9c33cd14862756d4fb12b5
Merge branch 'main' into specialize-shadowed-load-attrhttps://github.com/python/cpython/pull/123219/commits/975089fe78955672bb89cadb20940dfbf56df80a
https://github.com/markshannon
markshannonhttps://github.com/python/cpython/commits?author=markshannon
975089fhttps://github.com/python/cpython/pull/123219/commits/975089fe78955672bb89cadb20940dfbf56df80a
https://github.com/python/cpython/tree/975089fe78955672bb89cadb20940dfbf56df80a
Make function statichttps://github.com/python/cpython/pull/123219/commits/b7dbcc8bc87c775d0fddb8985b2361e013797d9c
https://github.com/markshannon
markshannonhttps://github.com/python/cpython/commits?author=markshannon
b7dbcc8https://github.com/python/cpython/pull/123219/commits/b7dbcc8bc87c775d0fddb8985b2361e013797d9c
https://github.com/python/cpython/tree/b7dbcc8bc87c775d0fddb8985b2361e013797d9c
Tidy logic in _Py_Specialize_LoadAttrhttps://github.com/python/cpython/pull/123219/commits/4b37d6cf959c2f38e040f2a06ea1cb3b6c0fb7ab
https://github.com/markshannon
markshannonhttps://github.com/python/cpython/commits?author=markshannon
4b37d6chttps://github.com/python/cpython/pull/123219/commits/4b37d6cf959c2f38e040f2a06ea1cb3b6c0fb7ab
https://github.com/python/cpython/tree/4b37d6cf959c2f38e040f2a06ea1cb3b6c0fb7ab
Fix compiler wanring and clarify commenthttps://github.com/python/cpython/pull/123219/commits/cc92e97639d66d7a6c9d66a65d710197c9a457b0
https://github.com/markshannon
markshannonhttps://github.com/python/cpython/commits?author=markshannon
cc92e97https://github.com/python/cpython/pull/123219/commits/cc92e97639d66d7a6c9d66a65d710197c9a457b0
https://github.com/python/cpython/tree/cc92e97639d66d7a6c9d66a65d710197c9a457b0
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.