René's URL Explorer Experiment


Title: gh-104909: Split some more insts into ops by gvanrossum · Pull Request #109943 · python/cpython · GitHub

Open Graph Title: gh-104909: Split some more insts into ops by gvanrossum · Pull Request #109943 · python/cpython

X Title: gh-104909: Split some more insts into ops by gvanrossum · Pull Request #109943 · python/cpython

Description: I started by adding some code that shows the most deserving non-viable opcodes. Also doubling max trace size again. I could do this all day, but the stats show there are diminishing returns. Output from python3 Tools/cases_generator/generate_cases.py -v before splitting the top 5: Read 186 instructions, 46 ops, 207 macros, 12 pseudos, and 14 families from Python/bytecodes.c The following ops are not viable uops: 1,906,418,185 LOAD_ATTR_METHOD_WITH_VALUES (specialization of LOAD_ATTR) 1,408,928,326 LOAD_ATTR_METHOD_NO_DICT (specialization of LOAD_ATTR) 1,359,753,529 LOAD_ATTR_SLOT (specialization of LOAD_ATTR) 1,064,113,118 STORE_ATTR_SLOT (specialization of STORE_ATTR) 981,677,187 STORE_ATTR_INSTANCE_VALUE (specialization of STORE_ATTR) 958,283,266 YIELD_VALUE 777,829,833 CALL (unspecialized) 490,635,610 SEND_GEN (specialization of SEND) 436,706,438 JUMP_FORWARD 430,588,960 EXTENDED_ARG 391,017,977 JUMP_BACKWARD_NO_INTERRUPT 351,940,012 LOAD_ATTR_MODULE (specialization of LOAD_ATTR) 347,159,058 LOAD_ATTR_WITH_HINT (specialization of LOAD_ATTR) 308,391,927 FOR_ITER (unspecialized) 251,204,370 RETURN_GENERATOR 241,313,761 CALL_LIST_APPEND (specialization of CALL) 177,791,632 CALL_PY_WITH_DEFAULTS (specialization of CALL) 175,204,354 CALL_KW 163,262,604 FOR_ITER_GEN (specialization of FOR_ITER) 146,454,299 BINARY_SUBSCR_GETITEM (specialization of BINARY_SUBSCR) 143,423,491 LOAD_ATTR_NONDESCRIPTOR_WITH_VALUES (specialization of LOAD_ATTR) 136,661,968 STORE_FAST_LOAD_FAST 136,511,856 LOAD_ATTR_CLASS (specialization of LOAD_ATTR) 112,730,831 SEND (unspecialized) 92,715,546 MAKE_CELL 83,410,408 CALL_FUNCTION_EX 69,188,245 CALL_ALLOC_AND_ENTER_INIT (specialization of CALL) 56,944,041 LOAD_ATTR_METHOD_LAZY_DICT (specialization of LOAD_ATTR) 52,280,673 LOAD_ATTR_PROPERTY (specialization of LOAD_ATTR) 50,964,787 STORE_ATTR_WITH_HINT (specialization of STORE_ATTR) 22,352,640 LOAD_ATTR_NONDESCRIPTOR_NO_DICT (specialization of LOAD_ATTR) 8,497,626 RERAISE 6,000,000 END_ASYNC_FOR 5,253,976 BEFORE_WITH 2,897,006 RAISE_VARARGS 2,005,368 IMPORT_FROM 1,968,468 IMPORT_NAME 8,160 BEFORE_ASYNC_WITH 5,907 RESUME (unspecialized) 1,540 LOAD_SUPER_ATTR (unspecialized) 801 CLEANUP_THROW ENTER_EXECUTOR LOAD_ATTR_GETATTRIBUTE_OVERRIDDEN (specialization of LOAD_ATTR) I took the counts from here (follow the pystats raw link). Curious what's up with LOAD_ATTR_GETATTRIBUTE_OVERRIDDEN? It was the same on the weekly run a week before; the week before that (Sept 10) the file format was different. @brandtbucher any intuition on this? Issue: gh-104909

Open Graph Description: I started by adding some code that shows the most deserving non-viable opcodes. Also doubling max trace size again. I could do this all day, but the stats show there are diminishing returns. Output...

X Description: I started by adding some code that shows the most deserving non-viable opcodes. Also doubling max trace size again. I could do this all day, but the stats show there are diminishing returns. Output...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9a06c9de-0cf1-3688-9bbd-cbaf171d6614
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBBDA:FB3A6:C9036A:11532C1:6969EFB1
html-safe-noncefed0b77beeb87485f33013479a579a76d839e757d75ff517c8485eb85c971b23
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkRBOkZCM0E2OkM5MDM2QToxMTUzMkMxOjY5NjlFRkIxIiwidmlzaXRvcl9pZCI6IjMwODg5NTM4Mzg0MDAwNDA4ODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac80afe869ffb0282f90f26c475feeb1a42d991a37eedcd343f8feb4fb64a4053b
hovercard-subject-tagpull_request:1531622678
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/109943/files
twitter:imagehttps://avatars.githubusercontent.com/u/2894642?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/2894642?s=400&v=4
og:image:altI started by adding some code that shows the most deserving non-viable opcodes. Also doubling max trace size again. I could do this all day, but the stats show there are diminishing returns. Output...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8
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
releasebdde15ad1b403e23b08bbd89b53fbe6bdf688cad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/109943/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F109943%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%2F109943%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/109943/files
Reloadhttps://github.com/python/cpython/pull/109943/files
Reloadhttps://github.com/python/cpython/pull/109943/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/109943/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/109943/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
gvanrossumhttps://github.com/gvanrossum
python:mainhttps://github.com/python/cpython/tree/main
gvanrossum:load-attr-uopshttps://github.com/gvanrossum/cpython/tree/load-attr-uops
Conversation 16 https://github.com/python/cpython/pull/109943
Commits 10 https://github.com/python/cpython/pull/109943/commits
Checks 0 https://github.com/python/cpython/pull/109943/checks
Files changed https://github.com/python/cpython/pull/109943/files
Please reload this pagehttps://github.com/python/cpython/pull/109943/files
gh-104909: Split some more insts into ops https://github.com/python/cpython/pull/109943/files#top
Show all changes 10 commits https://github.com/python/cpython/pull/109943/files
2ca26bb Print non-viable uops gvanrossum Sep 27, 2023 https://github.com/python/cpython/pull/109943/commits/2ca26bb68e4645136168e85d77e38935f30d8f8e
e19517c Sort non-viable opcodes by execution count gvanrossum Sep 27, 2023 https://github.com/python/cpython/pull/109943/commits/e19517c7f6cbd7d588fb3aea8654bca07ec7f440
8d1a856 Double _Py_UOP_MAX_TRACE_LENGTH to 128 gvanrossum Sep 27, 2023 https://github.com/python/cpython/pull/109943/commits/8d1a856b6ec7f86a82f1f6515e3aaa72a2e24ad3
3796e89 Split LOAD_ATTR_METHOD_WITH_VALUES gvanrossum Sep 27, 2023 https://github.com/python/cpython/pull/109943/commits/3796e89b7159e0bddb175e3554c14c61d63c3ae2
6d816ed Split LOAD_ATTR_METHOD_NO_DICT gvanrossum Sep 27, 2023 https://github.com/python/cpython/pull/109943/commits/6d816ed491ff8d1234a4d27f4f9005d95c6c3dfb
5ba03d1 Split LOAD_ATTR_SLOT (weird: action may deopt) gvanrossum Sep 27, 2023 https://github.com/python/cpython/pull/109943/commits/5ba03d1d8a2daecd5e6d9243e561ac176ccfffc9
5d0fa92 Split STORE_ATTR_SLOT gvanrossum Sep 27, 2023 https://github.com/python/cpython/pull/109943/commits/5d0fa92929342e25f2ef81b8079b1ec25c8ee96c
b54eee3 Split STORE_ATTR_INSTANCE_VALUE gvanrossum Sep 27, 2023 https://github.com/python/cpython/pull/109943/commits/b54eee3d757832ae5c5a3093e487600f1019ced4
24b4ec9 Merge branch 'main' into load-attr-uops gvanrossum Sep 27, 2023 https://github.com/python/cpython/pull/109943/commits/24b4ec973573f024561f306bc7b883a9181c72dd
85fb1e7 Fix LOAD_ATTR_METHOD_WITH_VALUES gvanrossum Sep 27, 2023 https://github.com/python/cpython/pull/109943/commits/85fb1e72177d21e22214793561c1c922cdfa5258
Clear filters https://github.com/python/cpython/pull/109943/files
Please reload this pagehttps://github.com/python/cpython/pull/109943/files
Please reload this pagehttps://github.com/python/cpython/pull/109943/files
pycore_opcode_metadata.h https://github.com/python/cpython/pull/109943/files#diff-72bc4c0445516cc3eabd536220b2459617491ffaabbdb8a7c5381f36c991e378
pycore_uops.h https://github.com/python/cpython/pull/109943/files#diff-037b455dd6b18b9adb881a5164c494f4f034878bac6f274d63b8e80ac1eee847
abstract_interp_cases.c.h https://github.com/python/cpython/pull/109943/files#diff-43ef12edb047baacf1e07fe1b9ea5ce4c695f53e5d5dcece81e826b221b04033
bytecodes.c https://github.com/python/cpython/pull/109943/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
executor_cases.c.h https://github.com/python/cpython/pull/109943/files#diff-a1c3430c42a66c16e6d2e154491a6da993b187b27c628545a12a02c7b2a06b81
generated_cases.c.h https://github.com/python/cpython/pull/109943/files#diff-4ef46fa654f95502e49a24f7dc8ee31a4cac9b3433fe9cd2b2d4dd78cfbad448
analysis.py https://github.com/python/cpython/pull/109943/files#diff-a9a0dece13c75ce8776b91970ed1343a27d5df9fb5ba1491df392314c8001d33
generate_cases.py https://github.com/python/cpython/pull/109943/files#diff-65feee563fa44b472b07751184c6f557699f84b3c2ef79174bfd5d538d748272
Include/internal/pycore_opcode_metadata.hhttps://github.com/python/cpython/pull/109943/files#diff-72bc4c0445516cc3eabd536220b2459617491ffaabbdb8a7c5381f36c991e378
View file https://github.com/gvanrossum/cpython/blob/85fb1e72177d21e22214793561c1c922cdfa5258/Include/internal/pycore_opcode_metadata.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/109943/files
Include/internal/pycore_uops.hhttps://github.com/python/cpython/pull/109943/files#diff-037b455dd6b18b9adb881a5164c494f4f034878bac6f274d63b8e80ac1eee847
View file https://github.com/gvanrossum/cpython/blob/85fb1e72177d21e22214793561c1c922cdfa5258/Include/internal/pycore_uops.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/109943/{{ revealButtonHref }}
https://github.com/python/cpython/pull/109943/files#diff-037b455dd6b18b9adb881a5164c494f4f034878bac6f274d63b8e80ac1eee847
https://github.com/python/cpython/pull/109943/files#diff-037b455dd6b18b9adb881a5164c494f4f034878bac6f274d63b8e80ac1eee847
Python/abstract_interp_cases.c.hhttps://github.com/python/cpython/pull/109943/files#diff-43ef12edb047baacf1e07fe1b9ea5ce4c695f53e5d5dcece81e826b221b04033
View file https://github.com/gvanrossum/cpython/blob/85fb1e72177d21e22214793561c1c922cdfa5258/Python/abstract_interp_cases.c.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/109943/files
Please reload this pagehttps://github.com/python/cpython/pull/109943/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.