René's URL Explorer Experiment


Title: gh-132042: Prebuild mro_dict for find_name_in_mro to speedup class creation by sergey-miryanov · Pull Request #132618 · python/cpython · GitHub

Open Graph Title: gh-132042: Prebuild mro_dict for find_name_in_mro to speedup class creation by sergey-miryanov · Pull Request #132618 · python/cpython

X Title: gh-132042: Prebuild mro_dict for find_name_in_mro to speedup class creation by sergey-miryanov · Pull Request #132618 · python/cpython

Description: This is one of the optimizations from #132156 that moved to separate PR. All three optimizations from original PR give about 40% speedup on tests. This optimization give about 15%-18% speedup. Issue: gh-132042

Open Graph Description: This is one of the optimizations from #132156 that moved to separate PR. All three optimizations from original PR give about 40% speedup on tests. This optimization give about 15%-18% speedup. Is...

X Description: This is one of the optimizations from #132156 that moved to separate PR. All three optimizations from original PR give about 40% speedup on tests. This optimization give about 15%-18% speedup. Is...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:19200a37-4b31-8c03-7804-9b6b0d74940a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB936:70ED5:6F0E5A:95CB24:6A580E34
html-safe-nonce6255b6151c632e9d150683f6475c8b06343d0bf7151ea614967c954424be88f0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTM2OjcwRUQ1OjZGMEU1QTo5NUNCMjQ6NkE1ODBFMzQiLCJ2aXNpdG9yX2lkIjoiNDcxNTQ1MjIxOTYyOTUwNjEwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac048e95e2400fc0e4f68276e3ce99a64ac63703e72c8a41a068fd70ba47038ec7
hovercard-subject-tagpull_request:2464579720
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/132618/files
twitter:imagehttps://avatars.githubusercontent.com/u/67315?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/67315?s=400&v=4
og:image:altThis is one of the optimizations from #132156 that moved to separate PR. All three optimizations from original PR give about 40% speedup on tests. This optimization give about 15%-18% speedup. Is...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None49c8c15fabcbf356d607a90ca115c13b273e42ff8b74155de050fd229a9b0121
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
release3fb1f684e7a833eb1b2d01d39875a2b52cb4fe9b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/132618/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F132618%2Ffiles
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/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/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/enterprise/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%2F132618%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/132618/files
Reloadhttps://github.com/python/cpython/pull/132618/files
Reloadhttps://github.com/python/cpython/pull/132618/files
Please reload this pagehttps://github.com/python/cpython/pull/132618/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/132618/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k 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
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
sergey-miryanovhttps://github.com/sergey-miryanov
python:mainhttps://github.com/python/cpython/tree/main
sergey-miryanov:gh-132042-precalc-mro-dicthttps://github.com/sergey-miryanov/cpython/tree/gh-132042-precalc-mro-dict
Conversation 40 https://github.com/python/cpython/pull/132618
Commits 27 https://github.com/python/cpython/pull/132618/commits
Checks 35 https://github.com/python/cpython/pull/132618/checks
Files changed https://github.com/python/cpython/pull/132618/files
Please reload this pagehttps://github.com/python/cpython/pull/132618/files
gh-132042: Prebuild mro_dict for find_name_in_mro to speedup class creation https://github.com/python/cpython/pull/132618/files#top
Show all changes 27 commits https://github.com/python/cpython/pull/132618/files
197615e Prebuild mro_dict for find_name_in_mro sergey-miryanov Apr 6, 2025 https://github.com/python/cpython/pull/132618/commits/197615e922d523f1b77b65657a866ad3c3172e67
b7842e0 Simplify find_name_in_mro_new and add some comments sergey-miryanov Apr 16, 2025 https://github.com/python/cpython/pull/132618/commits/b7842e01a43c0b2b4d6095c8021665679165a352
a7a978c Fix comment for find_namd_in_mro becase it returns strong ref now sergey-miryanov Apr 16, 2025 https://github.com/python/cpython/pull/132618/commits/a7a978ca4b691c0d499ddd47bde754dcfe44ee15
b870751 Merge branch 'main' into gh-132042-precalc-mro-dict sergey-miryanov Apr 17, 2025 https://github.com/python/cpython/pull/132618/commits/b8707511f2a9fb8379e01ad61f67fe5749c2b862
a64d3a0 Allow fixup_slot_dispatchers fails sergey-miryanov Apr 18, 2025 https://github.com/python/cpython/pull/132618/commits/a64d3a0ee5011fbf13301d829b811513b7e03638
7e067e3 Merge branch 'main' into gh-132042-precalc-mro-dict sergey-miryanov Apr 18, 2025 https://github.com/python/cpython/pull/132618/commits/7e067e3e622904a3f5a9cf8b0349e1b28369f9b5
88a19d5 Revert "Allow fixup_slot_dispatchers fails" sergey-miryanov Apr 18, 2025 https://github.com/python/cpython/pull/132618/commits/88a19d5c073b8467e7216b280b63e16e98658a75
860fbe7 Update comment about prebuild MRO-dict sergey-miryanov Apr 18, 2025 https://github.com/python/cpython/pull/132618/commits/860fbe739a7c508062b3d1a0bccaf3c239be0148
52617cb Merge branch 'main' into gh-132042-precalc-mro-dict sergey-miryanov Apr 19, 2025 https://github.com/python/cpython/pull/132618/commits/52617cbcfe3b7ca17946c0c9e3c7ae8fef9ad6d6
d46f493 Allow fixup_slot_dispatchers fails sergey-miryanov Apr 22, 2025 https://github.com/python/cpython/pull/132618/commits/d46f493fb52acc6189aa91e7e86fdfa668bcc1d1
8f7750e Fix test_type_lookup_mro_reference test because it raises exception w… sergey-miryanov Apr 22, 2025 https://github.com/python/cpython/pull/132618/commits/8f7750ef04db99ef42b3ca89d190e0fe83ff3425
0d17713 Merge branch 'main' into gh-132042-precalc-mro-dict sergey-miryanov Apr 22, 2025 https://github.com/python/cpython/pull/132618/commits/0d17713305ec67760d1a9db3d24c0ed4894f00a3
7f4c9c7 Update comment about building MRO dict sergey-miryanov Apr 22, 2025 https://github.com/python/cpython/pull/132618/commits/7f4c9c7a53babab866b7b41d1af0336824a14e8e
0d5375e Merge branch 'main' into gh-132042-precalc-mro-dict sergey-miryanov Apr 29, 2025 https://github.com/python/cpython/pull/132618/commits/0d5375e37f9de3b9e5baf3aaca46d956541fecb9
90296f0 Merge branch 'gh-132042-precalc-mro-dict' of github.com:sergey-miryan… sergey-miryanov Apr 29, 2025 https://github.com/python/cpython/pull/132618/commits/90296f0189f7e6eb0733ef8d26305ac2bb38afe8
26bafbf Remove END_TYPE_LOCK from fixup_slot_dispatchers sergey-miryanov Apr 29, 2025 https://github.com/python/cpython/pull/132618/commits/26bafbf5036307f2cb24f31407d3c2e532bdcbd6
23aaee0 Merge branch 'main' into gh-132042-precalc-mro-dict sergey-miryanov Apr 29, 2025 https://github.com/python/cpython/pull/132618/commits/23aaee0234370803b800300e817465526be8d050
74eabaf Trying to fix build sergey-miryanov Apr 29, 2025 https://github.com/python/cpython/pull/132618/commits/74eabaf9fe9e6b357ec1b4e00de00b6f8b68e18f
63ab044 Fix build sergey-miryanov Apr 29, 2025 https://github.com/python/cpython/pull/132618/commits/63ab0441e40e775d72580852a30cba7fc0718a5c
da778df Merge branch 'main' into gh-132042-precalc-mro-dict sergey-miryanov Apr 29, 2025 https://github.com/python/cpython/pull/132618/commits/da778df5b508010cdb12d5e5efa763e757ba30db
b9a1208 Fix merge conflicts sergey-miryanov Apr 29, 2025 https://github.com/python/cpython/pull/132618/commits/b9a1208bcac5bf2679425229a102ed56abc6a121
39f987b Fix merge conflicts sergey-miryanov Apr 29, 2025 https://github.com/python/cpython/pull/132618/commits/39f987b16e41e7630c54a20b561c03e6c4d07347
ede356d Merge branch 'main' into gh-132042-precalc-mro-dict sergey-miryanov Jun 24, 2025 https://github.com/python/cpython/pull/132618/commits/ede356d13a703d2c05a6ed9debbed9fe3ca12fbb
b3874ce Replace lock with assert sergey-miryanov Jun 24, 2025 https://github.com/python/cpython/pull/132618/commits/b3874ce7b09d3b284881d2800291f87d50f7d487
9cd3902 Fix fixup_slot_dispatchers definition sergey-miryanov Jun 24, 2025 https://github.com/python/cpython/pull/132618/commits/9cd3902d045b9a010371d6ffca215a4939f64e08
ce1ed2c Revert "Replace lock with assert" sergey-miryanov Jun 24, 2025 https://github.com/python/cpython/pull/132618/commits/ce1ed2cc76752170837cab032d6c3099bfd1d560
c71c8be Replace lock with assert sergey-miryanov Jun 24, 2025 https://github.com/python/cpython/pull/132618/commits/c71c8bea5d8fd803c78761cbdf615fccc032f30e
Clear filters https://github.com/python/cpython/pull/132618/files
Please reload this pagehttps://github.com/python/cpython/pull/132618/files
Please reload this pagehttps://github.com/python/cpython/pull/132618/files
test_descr.py https://github.com/python/cpython/pull/132618/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b
typeobject.c https://github.com/python/cpython/pull/132618/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
Lib/test/test_descr.pyhttps://github.com/python/cpython/pull/132618/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b
View file https://github.com/python/cpython/blob/c71c8bea5d8fd803c78761cbdf615fccc032f30e/Lib/test/test_descr.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/132618/{{ revealButtonHref }}
https://github.com/python/cpython/pull/132618/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b
https://github.com/python/cpython/pull/132618/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L220
Objects/typeobject.chttps://github.com/python/cpython/pull/132618/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
View file https://github.com/python/cpython/blob/c71c8bea5d8fd803c78761cbdf615fccc032f30e/Objects/typeobject.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/132618/{{ revealButtonHref }}
https://github.com/python/cpython/pull/132618/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/132618/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/132618/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/132618/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/132618/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/132618/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/132618/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/132618/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/132618/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/132618/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/132618/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/132618/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/132618/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/132618/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/132618/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
Please reload this pagehttps://github.com/python/cpython/pull/132618/files
https://github.com/python/cpython/pull/132618/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
Please reload this pagehttps://github.com/python/cpython/pull/132618/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.