René's URL Explorer Experiment


Title: gh-143995: Eliminate redundant refcounting in the JIT from LOAD_ATTR_MODULE by aisk · Pull Request #143996 · python/cpython · GitHub

Open Graph Title: gh-143995: Eliminate redundant refcounting in the JIT from LOAD_ATTR_MODULE by aisk · Pull Request #143996 · python/cpython

X Title: gh-143995: Eliminate redundant refcounting in the JIT from LOAD_ATTR_MODULE by aisk · Pull Request #143996 · python/cpython

Description: Generated `uops` before: _START_EXECUTOR _MAKE_WARM _SET_IP _CHECK_PERIODIC _CHECK_VALIDITY _ITER_CHECK_RANGE _GUARD_NOT_EXHAUSTED_RANGE _ITER_NEXT_RANGE _SET_IP _SWAP_FAST_3 _SPILL_OR_RELOAD _POP_TOP _CHECK_VALIDITY _LOAD_FAST_BORROW_1 _SET_IP _LOAD_ATTR_MODULE _CHECK_VALIDITY _SET_IP _SWAP_FAST_4 _POP_TOP _CHECK_VALIDITY _LOAD_FAST_BORROW_4 _SET_IP _TO_BOOL _CHECK_VALIDITY _GUARD_IS_TRUE_POP _LOAD_FAST_BORROW_2 _LOAD_CONST_INLINE_BORROW _GUARD_NOS_INT _BINARY_OP_ADD_INT _POP_TOP_NOP _POP_TOP_NOP _SWAP_FAST_2 _POP_TOP_INT _JUMP_TO_TOP _DEOPT _ERROR_POP_N _DEOPT _EXIT_TRACE _EXIT_TRACE _ERROR_POP_N _DEOPT _DEOPT _DEOPT _DEOPT _ERROR_POP_N _DEOPT _EXIT_TRACE _EXIT_TRACE Generated `uops` after: _START_EXECUTOR _MAKE_WARM _SET_IP _CHECK_PERIODIC _CHECK_VALIDITY _ITER_CHECK_RANGE _GUARD_NOT_EXHAUSTED_RANGE _ITER_NEXT_RANGE _SET_IP _SWAP_FAST_3 _SPILL_OR_RELOAD _POP_TOP _CHECK_VALIDITY _LOAD_FAST_BORROW_1 _LOAD_ATTR_MODULE _POP_TOP_NOP _SET_IP _SWAP_FAST_4 _POP_TOP _CHECK_VALIDITY _LOAD_FAST_BORROW_4 _SET_IP _TO_BOOL _CHECK_VALIDITY _GUARD_IS_TRUE_POP _LOAD_FAST_BORROW_2 _LOAD_CONST_INLINE_BORROW _GUARD_NOS_INT _BINARY_OP_ADD_INT _POP_TOP_NOP _POP_TOP_NOP _SWAP_FAST_2 _POP_TOP_INT _JUMP_TO_TOP _DEOPT _ERROR_POP_N _DEOPT _EXIT_TRACE _EXIT_TRACE _ERROR_POP_N _DEOPT _DEOPT _DEOPT _ERROR_POP_N _DEOPT _EXIT_TRACE _EXIT_TRACE Diff: _START_EXECUTOR _START_EXECUTOR _MAKE_WARM _MAKE_WARM _SET_IP _SET_IP _CHECK_PERIODIC _CHECK_PERIODIC _CHECK_VALIDITY _CHECK_VALIDITY _ITER_CHECK_RANGE _ITER_CHECK_RANGE _GUARD_NOT_EXHAUSTED_RANGE _GUARD_NOT_EXHAUSTED_RANGE _ITER_NEXT_RANGE _ITER_NEXT_RANGE _SET_IP _SET_IP _SWAP_FAST_3 _SWAP_FAST_3 _SPILL_OR_RELOAD _SPILL_OR_RELOAD _POP_TOP _POP_TOP _CHECK_VALIDITY _CHECK_VALIDITY _LOAD_FAST_BORROW_1 _LOAD_FAST_BORROW_1 _SET_IP < _LOAD_ATTR_MODULE _LOAD_ATTR_MODULE _CHECK_VALIDITY | _POP_TOP_NOP _SET_IP _SET_IP _SWAP_FAST_4 _SWAP_FAST_4 _POP_TOP _POP_TOP _CHECK_VALIDITY _CHECK_VALIDITY _LOAD_FAST_BORROW_4 _LOAD_FAST_BORROW_4 _SET_IP _SET_IP _TO_BOOL _TO_BOOL _CHECK_VALIDITY _CHECK_VALIDITY _GUARD_IS_TRUE_POP _GUARD_IS_TRUE_POP _LOAD_FAST_BORROW_2 _LOAD_FAST_BORROW_2 _LOAD_CONST_INLINE_BORROW _LOAD_CONST_INLINE_BORROW _GUARD_NOS_INT _GUARD_NOS_INT _BINARY_OP_ADD_INT _BINARY_OP_ADD_INT _POP_TOP_NOP _POP_TOP_NOP _POP_TOP_NOP _POP_TOP_NOP _SWAP_FAST_2 _SWAP_FAST_2 _POP_TOP_INT _POP_TOP_INT _JUMP_TO_TOP _JUMP_TO_TOP _DEOPT _DEOPT _ERROR_POP_N _ERROR_POP_N _DEOPT _DEOPT _EXIT_TRACE _EXIT_TRACE _EXIT_TRACE _EXIT_TRACE _ERROR_POP_N _ERROR_POP_N _DEOPT < _DEOPT _DEOPT _DEOPT _DEOPT _DEOPT _DEOPT _ERROR_POP_N _ERROR_POP_N _DEOPT _DEOPT _EXIT_TRACE _EXIT_TRACE _EXIT_TRACE _EXIT_TRACE The time cost for 1000000 iterations in the testfunc in the test case is reduced from approximately 126 seconds to 120 seconds. Issue: gh-143995

Open Graph Description: Generated `uops` before: _START_EXECUTOR _MAKE_WARM _SET_IP _CHECK_PERIODIC _CHECK_VALIDITY _ITER_CHECK_RANGE _GUARD_NOT_EXHAUSTED_RANGE _ITER_NEXT_RANGE _SET_IP _SWAP_FAST_3 _SPILL_OR_RELOAD _PO...

X Description: Generated `uops` before: _START_EXECUTOR _MAKE_WARM _SET_IP _CHECK_PERIODIC _CHECK_VALIDITY _ITER_CHECK_RANGE _GUARD_NOT_EXHAUSTED_RANGE _ITER_NEXT_RANGE _SET_IP _SWAP_FAST_3 _SPILL_OR_RELOAD _PO...

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

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:6bd02a81-5e86-897f-f8e0-ad490473b7ee
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB038:306893:5E4701:8548D9:696E5B19
html-safe-nonce19b61bb87bb8090eb8ee05a0d419b24428c25081516c39923a92d1e0ae877a1f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDM4OjMwNjg5Mzo1RTQ3MDE6ODU0OEQ5OjY5NkU1QjE5IiwidmlzaXRvcl9pZCI6IjUzMDYxMzk5ODY2NjExMDQ0MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac761fbc02af77a24c421061baadd905e472d5c7bf075e36a4612c37b96cf768b7
hovercard-subject-tagpull_request:3185326665
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/143996/files
twitter:imagehttps://avatars.githubusercontent.com/u/699636?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/699636?s=400&v=4
og:image:altGenerated `uops` before: _START_EXECUTOR _MAKE_WARM _SET_IP _CHECK_PERIODIC _CHECK_VALIDITY _ITER_CHECK_RANGE _GUARD_NOT_EXHAUSTED_RANGE _ITER_NEXT_RANGE _SET_IP _SWAP_FAST_3 _SPILL_OR_RELOAD _PO...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonef68b42d371252b0f236260d6234f4304a806fe5ac43d59faa21fb59d80df103b
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
release6b74bc8dbcd10b5d69fd9ee9d2cfdc8b35e18a4c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python/cpython/pull/143996/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F143996%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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F143996%2Ffiles
Sign up https://patch-diff.githubusercontent.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://patch-diff.githubusercontent.com/python/cpython/pull/143996/files
Reloadhttps://patch-diff.githubusercontent.com/python/cpython/pull/143996/files
Reloadhttps://patch-diff.githubusercontent.com/python/cpython/pull/143996/files
python https://patch-diff.githubusercontent.com/python
cpythonhttps://patch-diff.githubusercontent.com/python/cpython
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143996/files
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Fcpython
Code https://patch-diff.githubusercontent.com/python/cpython
Issues 5k+ https://patch-diff.githubusercontent.com/python/cpython/issues
Pull requests 2.1k https://patch-diff.githubusercontent.com/python/cpython/pulls
Actions https://patch-diff.githubusercontent.com/python/cpython/actions
Projects 31 https://patch-diff.githubusercontent.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/python/cpython/security
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143996/files
Insights https://patch-diff.githubusercontent.com/python/cpython/pulse
Code https://patch-diff.githubusercontent.com/python/cpython
Issues https://patch-diff.githubusercontent.com/python/cpython/issues
Pull requests https://patch-diff.githubusercontent.com/python/cpython/pulls
Actions https://patch-diff.githubusercontent.com/python/cpython/actions
Projects https://patch-diff.githubusercontent.com/python/cpython/projects
Security https://patch-diff.githubusercontent.com/python/cpython/security
Insights https://patch-diff.githubusercontent.com/python/cpython/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
aiskhttps://patch-diff.githubusercontent.com/aisk
python:mainhttps://patch-diff.githubusercontent.com/python/cpython/tree/main
aisk:load-attr-modulehttps://patch-diff.githubusercontent.com/aisk/cpython/tree/load-attr-module
Conversation 0 https://patch-diff.githubusercontent.com/python/cpython/pull/143996
Commits 6 https://patch-diff.githubusercontent.com/python/cpython/pull/143996/commits
Checks 54 https://patch-diff.githubusercontent.com/python/cpython/pull/143996/checks
Files changed https://patch-diff.githubusercontent.com/python/cpython/pull/143996/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143996/files
gh-143995: Eliminate redundant refcounting in the JIT from LOAD_ATTR_MODULE https://patch-diff.githubusercontent.com/python/cpython/pull/143996/files#top
Show all changes 6 commits https://patch-diff.githubusercontent.com/python/cpython/pull/143996/files
a95d364 Eliminate redundant refcounting for LOAD_ATTR_MODULE aisk Jan 14, 2026 https://patch-diff.githubusercontent.com/python/cpython/pull/143996/commits/a95d364b9794aab957aad440f61e7267d50d3621
c0ad56c Update genrated files aisk Jan 17, 2026 https://patch-diff.githubusercontent.com/python/cpython/pull/143996/commits/c0ad56c6e54b7a33b80acbf30a2dfbb40f807499
b803214 add test aisk Jan 17, 2026 https://patch-diff.githubusercontent.com/python/cpython/pull/143996/commits/b8032149c63b5823c46dee76ca4e12f6ece4ca52
3d30896 Update test aisk Jan 18, 2026 https://patch-diff.githubusercontent.com/python/cpython/pull/143996/commits/3d30896fa2e03d01e99811f3c1f865da1848e374
4b238bc Fix tests aisk Jan 18, 2026 https://patch-diff.githubusercontent.com/python/cpython/pull/143996/commits/4b238bcd4dc97b07a9cdc3c5a4b526f4fb41450e
267f9c0 Blurb this aisk Jan 18, 2026 https://patch-diff.githubusercontent.com/python/cpython/pull/143996/commits/267f9c004fc22b63dd0f1f0e63be14e4a6f43ca2
Clear filters https://patch-diff.githubusercontent.com/python/cpython/pull/143996/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143996/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143996/files
pycore_moduleobject.h https://patch-diff.githubusercontent.com/python/cpython/pull/143996/files#diff-e4580d8176afaa9eafde1afd646de2220746b3527aff4421f325a96f65437b81
pycore_opcode_metadata.h https://patch-diff.githubusercontent.com/python/cpython/pull/143996/files#diff-72bc4c0445516cc3eabd536220b2459617491ffaabbdb8a7c5381f36c991e378
pycore_uop_ids.h https://patch-diff.githubusercontent.com/python/cpython/pull/143996/files#diff-2a420e4d0d58009249c0f73f7c822167b053bd51cb213b20179bd2aebfc66ff9
pycore_uop_metadata.h https://patch-diff.githubusercontent.com/python/cpython/pull/143996/files#diff-55e65a72fa31e9b746e03076d2c74b716c0c1171663f36960b2339fcbfae9bab
test_opt.py https://patch-diff.githubusercontent.com/python/cpython/pull/143996/files#diff-67b5bd915e37f77df79907865982648172c27d3b96fbb072b30a73c6a2735439
2026-01-18-22-19-52.gh-issue-143996.s1Otj-.rst https://patch-diff.githubusercontent.com/python/cpython/pull/143996/files#diff-3bb851c3b51215808f27b52dbf70daba2ed3ac1d8049910a5c1049b1a10e7639
moduleobject.c https://patch-diff.githubusercontent.com/python/cpython/pull/143996/files#diff-8c2a0fd137780a0ee11c19aae8e46e8490f7667698cd78a5bde466bc995a08c5
bytecodes.c https://patch-diff.githubusercontent.com/python/cpython/pull/143996/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
executor_cases.c.h https://patch-diff.githubusercontent.com/python/cpython/pull/143996/files#diff-a1c3430c42a66c16e6d2e154491a6da993b187b27c628545a12a02c7b2a06b81
generated_cases.c.h https://patch-diff.githubusercontent.com/python/cpython/pull/143996/files#diff-4ef46fa654f95502e49a24f7dc8ee31a4cac9b3433fe9cd2b2d4dd78cfbad448
optimizer_bytecodes.c https://patch-diff.githubusercontent.com/python/cpython/pull/143996/files#diff-e5bd2b14b0b10f0f47786e26306d689ed1361c3dc3b11dcc3ea52b8a2422ff64
optimizer_cases.c.h https://patch-diff.githubusercontent.com/python/cpython/pull/143996/files#diff-ed4567b3e67709ec57bf4df91ef058cfcbe00d7da11cd2a75e38241fa1ca99d2
https://patch-diff.githubusercontent.com/python/cpython/blob/main/.github/CODEOWNERS#L266
Include/internal/pycore_moduleobject.hhttps://patch-diff.githubusercontent.com/python/cpython/pull/143996/files#diff-e4580d8176afaa9eafde1afd646de2220746b3527aff4421f325a96f65437b81
View file https://patch-diff.githubusercontent.com/python/cpython/blob/267f9c004fc22b63dd0f1f0e63be14e4a6f43ca2/Include/internal/pycore_moduleobject.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/python/cpython/pull/143996/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/python/cpython/pull/143996/files#diff-e4580d8176afaa9eafde1afd646de2220746b3527aff4421f325a96f65437b81
https://patch-diff.githubusercontent.com/python/cpython/pull/143996/files#diff-e4580d8176afaa9eafde1afd646de2220746b3527aff4421f325a96f65437b81
Include/internal/pycore_opcode_metadata.hhttps://patch-diff.githubusercontent.com/python/cpython/pull/143996/files#diff-72bc4c0445516cc3eabd536220b2459617491ffaabbdb8a7c5381f36c991e378
View file https://patch-diff.githubusercontent.com/python/cpython/blob/267f9c004fc22b63dd0f1f0e63be14e4a6f43ca2/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://patch-diff.githubusercontent.com/python/cpython/pull/143996/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143996/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python/cpython/pull/143996/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.