René's URL Explorer Experiment


Title: gh-103193: Micro-optimise helper functions for `inspect.getattr_static` by AlexWaygood · Pull Request #103195 · python/cpython · GitHub

Open Graph Title: gh-103193: Micro-optimise helper functions for `inspect.getattr_static` by AlexWaygood · Pull Request #103195 · python/cpython

X Title: gh-103193: Micro-optimise helper functions for `inspect.getattr_static` by AlexWaygood · Pull Request #103195 · python/cpython

Description: Micro-optimising inspect._static_getmro and inspect._shadowed_dict leads to a significant improvement in the time taken to call isinstance() on a runtime-checkable protocol. (This is a useful bench...

Open Graph Description: Micro-optimising inspect._static_getmro and inspect._shadowed_dict leads to a significant improvement in the time taken to call isinstance() on a runtime-checkable protocol. (This is a useful bench...

X Description: Micro-optimising inspect._static_getmro and inspect._shadowed_dict leads to a significant improvement in the time taken to call isinstance() on a runtime-checkable protocol. (This is a useful bench...

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:ccc528b8-f9c4-9dfd-215a-a30506d2d0a6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB80C:C9E9C:C56ECC:114E808:696A21A1
html-safe-noncef38786d520b892af8ff6702d20716cb0cbab5e1de4b3dcaf4575f5f809dc1c0d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODBDOkM5RTlDOkM1NkVDQzoxMTRFODA4OjY5NkEyMUExIiwidmlzaXRvcl9pZCI6IjY5MDYyNzE1Mzc4NzQ3Mzk2MTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf63304d2f3f6f46e2ce5b24d2b03c4b3941e41d207031621957a1b24f23d1817
hovercard-subject-tagpull_request:1299159370
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/103195/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/162c8dd116cfb6d555048ed82147614ebadbd2d33ca3c3e1982459ac7d9252fe/python/cpython/pull/103195
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/162c8dd116cfb6d555048ed82147614ebadbd2d33ca3c3e1982459ac7d9252fe/python/cpython/pull/103195
og:image:altMicro-optimising inspect._static_getmro and inspect._shadowed_dict leads to a significant improvement in the time taken to call isinstance() on a runtime-checkable protocol. (This is a useful bench...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAlexWaygood
hostnamegithub.com
expected-hostnamegithub.com
None014f3d193f36b7d393f88ca22d06fbacd370800b40a547c1ea67291e02dc8ea3
turbo-cache-controlno-preview
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
released515f6f09fa57a93bf90355cb894eb84ca4f458f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/103195#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F103195
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%2F103195
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/103195
Reloadhttps://github.com/python/cpython/pull/103195
Reloadhttps://github.com/python/cpython/pull/103195
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/103195
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/103195
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
Jump to bottomhttps://github.com/python/cpython/pull/103195#issue-comment-box
AlexWaygoodhttps://github.com/AlexWaygood
python:mainhttps://github.com/python/cpython/tree/main
AlexWaygood:microoptimise-getattr_static-helpershttps://github.com/AlexWaygood/cpython/tree/microoptimise-getattr_static-helpers
gh-103193: Micro-optimise helper functions for inspect.getattr_static https://github.com/python/cpython/pull/103195#top
AlexWaygoodhttps://github.com/AlexWaygood
python:mainhttps://github.com/python/cpython/tree/main
AlexWaygood:microoptimise-getattr_static-helpershttps://github.com/AlexWaygood/cpython/tree/microoptimise-getattr_static-helpers
Conversation 14 https://github.com/python/cpython/pull/103195
Commits 2 https://github.com/python/cpython/pull/103195/commits
Checks 0 https://github.com/python/cpython/pull/103195/checks
Files changed https://github.com/python/cpython/pull/103195/files
Please reload this pagehttps://github.com/python/cpython/pull/103195
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Apr 2, 2023https://github.com/python/cpython/pull/103195#issue-1651021992
Please reload this pagehttps://github.com/python/cpython/pull/103195
a0305c5https://github.com/python/cpython/commit/a0305c5fdfdef7a362d0262c54399c4a6013d1ea
Optimise inspect.getattr_static #103193https://github.com/python/cpython/issues/103193
Please reload this pagehttps://github.com/python/cpython/pull/103195
https://github.com/AlexWaygood
pythongh-103193https://github.com/python/cpython/issues/103193
: Micro-optimise helper functions for `inspect.getattr…https://github.com/python/cpython/pull/103195/commits/469e16521f64937001e9afa397fe2d6e0bfe5b38
469e165https://github.com/python/cpython/pull/103195/commits/469e16521f64937001e9afa397fe2d6e0bfe5b38
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
type-feature https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature
performance https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance
stdlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astdlib
3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.12
Apr 2, 2023https://github.com/python/cpython/pull/103195#event-8906771218
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
carljmhttps://github.com/carljm
April 2, 2023 17:05https://github.com/python/cpython/pull/103195#event-8906771229
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Apr 2, 2023https://github.com/python/cpython/pull/103195#event-8906771314
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Apr 2, 2023 https://github.com/python/cpython/pull/103195#ref-issue-1651011100
Optimise inspect.getattr_static #103193 https://github.com/python/cpython/issues/103193
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Apr 2, 2023https://github.com/python/cpython/pull/103195#issuecomment-1493405662
Fix data descriptor detection in inspect.getattr_static #75367https://github.com/python/cpython/issues/75367
Please reload this pagehttps://github.com/python/cpython/pull/103195
https://github.com/Eclips4
Eclips4https://github.com/Eclips4
Apr 3, 2023https://github.com/python/cpython/pull/103195#issuecomment-1493984327
Please reload this pagehttps://github.com/python/cpython/pull/103195
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Apr 3, 2023https://github.com/python/cpython/pull/103195#issuecomment-1494372145
Please reload this pagehttps://github.com/python/cpython/pull/103195
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Apr 3, 2023 https://github.com/python/cpython/pull/103195#pullrequestreview-1369105799
View reviewed changes https://github.com/python/cpython/pull/103195/files/469e16521f64937001e9afa397fe2d6e0bfe5b38
sobolevnhttps://github.com/sobolevn
https://github.com/python/cpython/pull/103195#pullrequestreview-1369105799
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/103195
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Apr 3, 2023https://github.com/python/cpython/pull/103195#issuecomment-1494390851
Please reload this pagehttps://github.com/python/cpython/pull/103195
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Apr 3, 2023https://github.com/python/cpython/pull/103195#issuecomment-1494393422
Please reload this pagehttps://github.com/python/cpython/pull/103195
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Apr 3, 2023https://github.com/python/cpython/pull/103195#issuecomment-1494439570
Please reload this pagehttps://github.com/python/cpython/pull/103195
Please reload this pagehttps://github.com/python/cpython/pull/103195
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Apr 3, 2023https://github.com/python/cpython/pull/103195#issuecomment-1494443778
Please reload this pagehttps://github.com/python/cpython/pull/103195
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Apr 3, 2023https://github.com/python/cpython/pull/103195#issuecomment-1494461004
Please reload this pagehttps://github.com/python/cpython/pull/103195
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Apr 3, 2023https://github.com/python/cpython/pull/103195#issuecomment-1494466511
Please reload this pagehttps://github.com/python/cpython/pull/103195
Please reload this pagehttps://github.com/python/cpython/pull/103195
https://github.com/AlexWaygood
Address reviewhttps://github.com/python/cpython/pull/103195/commits/49c0352fc30a11b5cd8893c71b49ac64fb144976
49c0352https://github.com/python/cpython/pull/103195/commits/49c0352fc30a11b5cd8893c71b49ac64fb144976
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Apr 3, 2023https://github.com/python/cpython/pull/103195#issuecomment-1494530996
Please reload this pagehttps://github.com/python/cpython/pull/103195
Please reload this pagehttps://github.com/python/cpython/pull/103195
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Apr 3, 2023https://github.com/python/cpython/pull/103195#issuecomment-1494538975
Please reload this pagehttps://github.com/python/cpython/pull/103195
https://github.com/carljm
carljmhttps://github.com/carljm
Apr 5, 2023 https://github.com/python/cpython/pull/103195#pullrequestreview-1371942197
View reviewed changes https://github.com/python/cpython/pull/103195/files/49c0352fc30a11b5cd8893c71b49ac64fb144976
carljmhttps://github.com/carljm
https://github.com/python/cpython/pull/103195#pullrequestreview-1371942197
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/103195
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Apr 5, 2023https://github.com/python/cpython/pull/103195#event-8929730756
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
264c00ahttps://github.com/python/cpython/commit/264c00a1c512a9bd58f47c80e72e436c639763c8
Apr 5, 2023https://github.com/python/cpython/pull/103195#event-8931865420
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Apr 5, 2023https://github.com/python/cpython/pull/103195#event-8931865963
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
April 5, 2023 07:27https://github.com/python/cpython/pull/103195#event-8931866186
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Apr 5, 2023https://github.com/python/cpython/pull/103195#issuecomment-1497340292
Please reload this pagehttps://github.com/python/cpython/pull/103195
gh-103193: Use LBYL idioms rather than EAFP in inspect.getattr_static #103318 https://github.com/python/cpython/pull/103318
gh-74690: Document changes made to runtime-checkable protocols in 3.12 #103348 https://github.com/python/cpython/pull/103348
gaogaotiantianhttps://github.com/gaogaotiantian
Apr 8, 2023 https://github.com/python/cpython/pull/103195#ref-commit-62d4471
https://github.com/AlexWaygood
https://github.com/gaogaotiantian
pythongh-103193https://github.com/python/cpython/issues/103193
: Micro-optimise helper functions for `inspect.getattr…https://github.com/gaogaotiantian/cpython/commit/62d4471896469658ef3143af49a0887c71d87a46
62d4471https://github.com/gaogaotiantian/cpython/commit/62d4471896469658ef3143af49a0887c71d87a46
python#103195https://github.com/python/cpython/pull/103195
warsawhttps://github.com/warsaw
Apr 11, 2023 https://github.com/python/cpython/pull/103195#ref-commit-55c701e
https://github.com/AlexWaygood
https://github.com/warsaw
pythongh-103193https://github.com/python/cpython/issues/103193
: Micro-optimise helper functions for `inspect.getattr…https://github.com/warsaw/cpython/commit/55c701e7dc66cb3561d8d9b264fc138fa8641de2
55c701ehttps://github.com/warsaw/cpython/commit/55c701e7dc66cb3561d8d9b264fc138fa8641de2
python#103195https://github.com/python/cpython/pull/103195
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F103195
https://github.com/sobolevn
sobolevn https://github.com/sobolevn
https://github.com/python/cpython/pull/103195/files/469e16521f64937001e9afa397fe2d6e0bfe5b38
https://github.com/carljm
carljm https://github.com/carljm
https://github.com/python/cpython/pull/103195/files/49c0352fc30a11b5cd8893c71b49ac64fb144976
3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.12
performance https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance
stdlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astdlib
type-feature https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature
Please reload this pagehttps://github.com/python/cpython/pull/103195
https://github.com/AlexWaygood
https://github.com/Eclips4
https://github.com/sobolevn
https://github.com/picnixz
https://github.com/carljm
https://github.com/bedevere-bot
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.