René's URL Explorer Experiment


Title: gh-132042: Speed up slot lookup during class creation by eendebakpt · Pull Request #159479 · python/cpython · GitHub

Open Graph Title: gh-132042: Speed up slot lookup during class creation by eendebakpt · Pull Request #159479 · python/cpython

X Title: gh-132042: Speed up slot lookup during class creation by eendebakpt · Pull Request #159479 · python/cpython

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

Open Graph Description: fixup_slot_dispatchers() resolves the special-method slots of a new class with one dict lookup per slot name and per class in the MRO: about 92 names times the MRO length, ~180 lookups for class A:...

X Description: fixup_slot_dispatchers() resolves the special-method slots of a new class with one dict lookup per slot name and per class in the MRO: about 92 names times the MRO length, ~180 lookups for class A:...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:91e7c643-3faa-5da1-0490-a341ccc1ec83
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCC56:928E2:38033AD:4AA0D09:6B021641
html-safe-nonce3d135a974292a08194146357c6ff6d6f867f6128c9ed63da550406164a965f92
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzU2OjkyOEUyOjM4MDMzQUQ6NEFBMEQwOTo2QjAyMTY0MSIsInZpc2l0b3JfaWQiOiI3NDkxODQ4MjI0MTI0NDkzNDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6378db59011f49c5fc9c639634a2c93ee1b9ae311ff4934d70dd3b8289776c0c
hovercard-subject-tagpull_request:4876762589
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/159479/commits
twitter:imagehttps://opengraph.githubassets.com/f4116f701230151f3dff5221654d51a343a186743ef4e22ea6f33e25a2077afc/python/cpython/pull/159479
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f4116f701230151f3dff5221654d51a343a186743ef4e22ea6f33e25a2077afc/python/cpython/pull/159479
og:image:altfixup_slot_dispatchers() resolves the special-method slots of a new class with one dict lookup per slot name and per class in the MRO: about 92 names times the MRO length, ~180 lookups for class A:...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameeendebakpt
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/159479/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F159479%2Fcommits
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F159479%2Fcommits
Sign uphttps://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/159479/commits
Reloadhttps://github.com/python/cpython/pull/159479/commits
Reloadhttps://github.com/python/cpython/pull/159479/commits
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
eendebakpthttps://github.com/eendebakpt
python:mainhttps://github.com/python/cpython/tree/main
eendebakpt:type_new_fast_slot_lookuphttps://github.com/eendebakpt/cpython/tree/type_new_fast_slot_lookup
Conversationhttps://github.com/python/cpython/pull/159479
Commits11 (11)https://github.com/python/cpython/pull/159479/commits
Checkshttps://github.com/python/cpython/pull/159479/checks
Files changedhttps://github.com/python/cpython/pull/159479/files
gh-132042: Speed up slot lookup during class creationhttps://github.com/python/cpython/pull/159479/commits#top
eendebakpthttps://github.com/eendebakpt
python:mainhttps://github.com/python/cpython/tree/main
eendebakpt:type_new_fast_slot_lookuphttps://github.com/eendebakpt/cpython/tree/type_new_fast_slot_lookup
gh-132042: Speed up slot lookup during class creationhttps://github.com/python/cpython/pull/159479/commits/12c36e9b8e50e29383b0551f3ea2b94cba66cff2
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
claudehttps://github.com/python/cpython/commits?author=claude
12c36e9https://github.com/python/cpython/pull/159479/commits/12c36e9b8e50e29383b0551f3ea2b94cba66cff2
https://github.com/python/cpython/tree/12c36e9b8e50e29383b0551f3ea2b94cba66cff2
Merge branch 'main' into type_new_fast_slot_lookuphttps://github.com/python/cpython/pull/159479/commits/6926f016118955c67838df8e0ed0dd656316b29f
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
6926f01https://github.com/python/cpython/pull/159479/commits/6926f016118955c67838df8e0ed0dd656316b29f
https://github.com/python/cpython/tree/6926f016118955c67838df8e0ed0dd656316b29f
Replace dead defensive checks in collect_slot_descrs() with assertshttps://github.com/python/cpython/pull/159479/commits/d180deda96aa2d6ec92a41e2e1f2ccbd6224a21f
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
d180dedhttps://github.com/python/cpython/pull/159479/commits/d180deda96aa2d6ec92a41e2e1f2ccbd6224a21f
https://github.com/python/cpython/tree/d180deda96aa2d6ec92a41e2e1f2ccbd6224a21f
Use the slot name table in update_slot()https://github.com/python/cpython/pull/159479/commits/8b518c971ed37acd62cf4de7e08750a271f3b612
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
8b518c9https://github.com/python/cpython/pull/159479/commits/8b518c971ed37acd62cf4de7e08750a271f3b612
https://github.com/python/cpython/tree/8b518c971ed37acd62cf4de7e08750a271f3b612
Share the slot name table probe loophttps://github.com/python/cpython/pull/159479/commits/e9ec8b63827959c55912d12973314bfa53c9a57c
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
e9ec8b6https://github.com/python/cpython/pull/159479/commits/e9ec8b63827959c55912d12973314bfa53c9a57c
https://github.com/python/cpython/tree/e9ec8b63827959c55912d12973314bfa53c9a57c
review commentshttps://github.com/python/cpython/pull/159479/commits/cd172c992fce754c2f4575681815fb291d3ce323
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
cd172c9https://github.com/python/cpython/pull/159479/commits/cd172c992fce754c2f4575681815fb291d3ce323
https://github.com/python/cpython/tree/cd172c992fce754c2f4575681815fb291d3ce323
Merge branch 'main' into type_new_fast_slot_lookuphttps://github.com/python/cpython/pull/159479/commits/5c154f30e470ce8d6f9feb1acef7bedefd0b5321
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
5c154f3https://github.com/python/cpython/pull/159479/commits/5c154f30e470ce8d6f9feb1acef7bedefd0b5321
https://github.com/python/cpython/tree/5c154f30e470ce8d6f9feb1acef7bedefd0b5321
gh-132042: Allow dict subclasses as tp_dict in the slot scanhttps://github.com/python/cpython/pull/159479/commits/8d742e00df26c03c1c4a430ecbb4d691932b252a
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
claudehttps://github.com/python/cpython/commits?author=claude
8d742e0https://github.com/python/cpython/pull/159479/commits/8d742e00df26c03c1c4a430ecbb4d691932b252a
https://github.com/python/cpython/tree/8d742e00df26c03c1c4a430ecbb4d691932b252a
gh-132042: Test subclassing a type whose tp_dict is a dict subclasshttps://github.com/python/cpython/pull/159479/commits/40078695009b4145928d633110356b3f0a9b1c88
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
claudehttps://github.com/python/cpython/commits?author=claude
4007869https://github.com/python/cpython/pull/159479/commits/40078695009b4145928d633110356b3f0a9b1c88
https://github.com/python/cpython/tree/40078695009b4145928d633110356b3f0a9b1c88
Merge branch 'main' into type_new_fast_slot_lookuphttps://github.com/python/cpython/pull/159479/commits/9b7ff6a9be3991885430c2553bd26ef60b7a4a84
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
9b7ff6ahttps://github.com/python/cpython/pull/159479/commits/9b7ff6a9be3991885430c2553bd26ef60b7a4a84
https://github.com/python/cpython/tree/9b7ff6a9be3991885430c2553bd26ef60b7a4a84
gh-132042: Ignore the MyListDictSubclass_Type static type in check-c-globalshttps://github.com/python/cpython/pull/159479/commits/9669c6f047dd78d7e39e355f5d57df508b5e801f
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
claudehttps://github.com/python/cpython/commits?author=claude
9669c6fhttps://github.com/python/cpython/pull/159479/commits/9669c6f047dd78d7e39e355f5d57df508b5e801f
https://github.com/python/cpython/tree/9669c6f047dd78d7e39e355f5d57df508b5e801f
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.