René's URL Explorer Experiment


Title: GH-100288: Specialize LOAD_ATTR for simple class attributes. by markshannon · Pull Request #105990 · python/cpython · GitHub

Open Graph Title: GH-100288: Specialize LOAD_ATTR for simple class attributes. by markshannon · Pull Request #105990 · python/cpython

X Title: GH-100288: Specialize LOAD_ATTR for simple class attributes. by markshannon · Pull Request #105990 · python/cpython

Description: This PR specializes for things like obj.x where: class C: x = 1 obj = C() obj.x Stats The miss rate for LOAD_ATTR_NONDESCRIPTOR_WITH_VALUES is quite poor at 33% (Ignore the stats for LOAD_ATTR_NONDESCRIPTOR_LAZY_DICT, I've removed it) Issue: gh-100288

Open Graph Description: This PR specializes for things like obj.x where: class C: x = 1 obj = C() obj.x Stats The miss rate for LOAD_ATTR_NONDESCRIPTOR_WITH_VALUES is quite poor at 33% (Ignore the stats for LOAD_ATTR_...

X Description: This PR specializes for things like obj.x where: class C: x = 1 obj = C() obj.x Stats The miss rate for LOAD_ATTR_NONDESCRIPTOR_WITH_VALUES is quite poor at 33% (Ignore the stats for LOAD_ATTR_...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d093051d-3f0f-d6e4-69a0-cc9cd8351679
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC970:4F147:8F9A3E:C17AEA:69697B70
html-safe-nonce2c7ec0e2d97ceaa9b8728b9e6407d51a302b1e90fec979de18735e30a5c74fde
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTcwOjRGMTQ3OjhGOUEzRTpDMTdBRUE6Njk2OTdCNzAiLCJ2aXNpdG9yX2lkIjoiNTkxNjU2OTkzNTk1NTk4MzIxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf61154253ba1869998ba2d39b7a0fe86762dbe0764a5aa376911c550e65ce1a2
hovercard-subject-tagpull_request:1403776711
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/105990/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:altThis PR specializes for things like obj.x where: class C: x = 1 obj = C() obj.x Stats The miss rate for LOAD_ATTR_NONDESCRIPTOR_WITH_VALUES is quite poor at 33% (Ignore the stats for LOAD_ATTR_...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonef33e4b94c8824ab2b434d82a94139432fb5ebee9df4b75304140ad22508c4a77
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
release48f380098b30acbb700b04f1724481ca10d574fc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/105990/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F105990%2Ffiles
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%2F105990%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/105990/files
Reloadhttps://github.com/python/cpython/pull/105990/files
Reloadhttps://github.com/python/cpython/pull/105990/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/105990/files
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/105990/files
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
markshannonhttps://github.com/markshannon
python:mainhttps://github.com/python/cpython/tree/main
faster-cpython:specialize-more-load-attrhttps://github.com/faster-cpython/cpython/tree/specialize-more-load-attr
Conversation 16 https://github.com/python/cpython/pull/105990
Commits 8 https://github.com/python/cpython/pull/105990/commits
Checks 0 https://github.com/python/cpython/pull/105990/checks
Files changed https://github.com/python/cpython/pull/105990/files
Please reload this pagehttps://github.com/python/cpython/pull/105990/files
GH-100288: Specialize LOAD_ATTR for simple class attributes. https://github.com/python/cpython/pull/105990/files#top
Show all changes 8 commits https://github.com/python/cpython/pull/105990/files
ed977a1 Add three more specializations of LOAD_ATTR. markshannon Jun 19, 2023 https://github.com/python/cpython/pull/105990/commits/ed977a14abe94ae682a41cd95f8325c3bc3e09d5
192d074 Remove LOAD_ATTR_NONDESCRIPTOR_LAZY_DICT markshannon Jun 19, 2023 https://github.com/python/cpython/pull/105990/commits/192d0744362d8bd39c08caf1d6b5882e206e3ae8
3d23b98 Address review comments markshannon Jun 20, 2023 https://github.com/python/cpython/pull/105990/commits/3d23b98e3436680fcacb27a69a25e0131eff119f
d258c0f Merge branch 'main' into specialize-more-load-attr markshannon Jul 4, 2023 https://github.com/python/cpython/pull/105990/commits/d258c0f8f61c487dff6c315fabdc49ce794a1ab4
1eec620 Add news markshannon Jul 4, 2023 https://github.com/python/cpython/pull/105990/commits/1eec620b63a69ef1e102527db7136b4870d3588e
5861e52 Give the interpreter generator a helping hand. markshannon Jul 5, 2023 https://github.com/python/cpython/pull/105990/commits/5861e525bc8d2697766bca9d114ef5cb45768ed0
16a2718 Merge branch 'main' into specialize-more-load-attr markshannon Jul 5, 2023 https://github.com/python/cpython/pull/105990/commits/16a2718dbb975b942796f70e5cda55284e3afa3f
8853284 Merge branch 'main' into specialize-more-load-attr markshannon Jul 5, 2023 https://github.com/python/cpython/pull/105990/commits/8853284bd0d0d47c313e4e09b1ca9ad5e333e4e8
Clear filters https://github.com/python/cpython/pull/105990/files
Please reload this pagehttps://github.com/python/cpython/pull/105990/files
Please reload this pagehttps://github.com/python/cpython/pull/105990/files
pycore_opcode.h https://github.com/python/cpython/pull/105990/files#diff-7b986d4fccffcb2f2af4ec495559b2f0dc2e393e38f95e8ca3ef48e559177530
opcode.h https://github.com/python/cpython/pull/105990/files#diff-1cd1f0bb26c3fbaa279f83ee2bfe1d9072da7af07407111c79039c66034c57ed
_opcode_metadata.py https://github.com/python/cpython/pull/105990/files#diff-3f2acff9cdbb005de538e3ba43dc12406bf414047d7d018476bac0048b5056e4
2023-07-04-04-50-14.gh-issue-100288.yNQ1ez.rst https://github.com/python/cpython/pull/105990/files#diff-a8b8bb97f83862c99a7fd89115d9ac76fe36b31fe5c20ce3eedb51759e8c681b
bytecodes.c https://github.com/python/cpython/pull/105990/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
executor_cases.c.h https://github.com/python/cpython/pull/105990/files#diff-a1c3430c42a66c16e6d2e154491a6da993b187b27c628545a12a02c7b2a06b81
generated_cases.c.h https://github.com/python/cpython/pull/105990/files#diff-4ef46fa654f95502e49a24f7dc8ee31a4cac9b3433fe9cd2b2d4dd78cfbad448
opcode_metadata.h https://github.com/python/cpython/pull/105990/files#diff-f862bc60824529a25ba378be850ecc6762f03c6c944266d30ac7172d10132498
opcode_targets.h https://github.com/python/cpython/pull/105990/files#diff-d3363a4083b77b9157d0bf07c2e87f3d3464a8b4360d5d23b07bbb23061f007a
specialize.c https://github.com/python/cpython/pull/105990/files#diff-22e653d878778ca28317261f7826545288d02fd9980cf485d0329f28a34993f2
Include/internal/pycore_opcode.hhttps://github.com/python/cpython/pull/105990/files#diff-7b986d4fccffcb2f2af4ec495559b2f0dc2e393e38f95e8ca3ef48e559177530
View file https://github.com/faster-cpython/cpython/blob/8853284bd0d0d47c313e4e09b1ca9ad5e333e4e8/Include/internal/pycore_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/105990/files
Include/opcode.hhttps://github.com/python/cpython/pull/105990/files#diff-1cd1f0bb26c3fbaa279f83ee2bfe1d9072da7af07407111c79039c66034c57ed
View file https://github.com/faster-cpython/cpython/blob/8853284bd0d0d47c313e4e09b1ca9ad5e333e4e8/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/105990/files
Lib/_opcode_metadata.pyhttps://github.com/python/cpython/pull/105990/files#diff-3f2acff9cdbb005de538e3ba43dc12406bf414047d7d018476bac0048b5056e4
View file https://github.com/faster-cpython/cpython/blob/8853284bd0d0d47c313e4e09b1ca9ad5e333e4e8/Lib/_opcode_metadata.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/105990/{{ revealButtonHref }}
https://github.com/python/cpython/pull/105990/files#diff-3f2acff9cdbb005de538e3ba43dc12406bf414047d7d018476bac0048b5056e4
https://github.com/python/cpython/pull/105990/files#diff-3f2acff9cdbb005de538e3ba43dc12406bf414047d7d018476bac0048b5056e4
Misc/NEWS.d/next/Core and Builtins/2023-07-04-04-50-14.gh-issue-100288.yNQ1ez.rsthttps://github.com/python/cpython/pull/105990/files#diff-a8b8bb97f83862c99a7fd89115d9ac76fe36b31fe5c20ce3eedb51759e8c681b
View file https://github.com/faster-cpython/cpython/blob/8853284bd0d0d47c313e4e09b1ca9ad5e333e4e8/Misc/NEWS.d/next/Core%20and%20Builtins/2023-07-04-04-50-14.gh-issue-100288.yNQ1ez.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/105990/{{ revealButtonHref }}
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L221
Python/bytecodes.chttps://github.com/python/cpython/pull/105990/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
View file https://github.com/faster-cpython/cpython/blob/8853284bd0d0d47c313e4e09b1ca9ad5e333e4e8/Python/bytecodes.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/105990/{{ revealButtonHref }}
https://github.com/python/cpython/pull/105990/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/pull/105990/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/pull/105990/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/pull/105990/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/pull/105990/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/pull/105990/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/pull/105990/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
Please reload this pagehttps://github.com/python/cpython/pull/105990/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.