| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:92cb23cc-2653-9d7e-d171-d1bab9ba069b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 80D2:31EA40:3994C6:4D31EC:6969D667 |
| html-safe-nonce | 9432a7625cbbbac7558d3c0cf0dc848398ae240582259fb92ffb3a1f0161a003 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MEQyOjMxRUE0MDozOTk0QzY6NEQzMUVDOjY5NjlENjY3IiwidmlzaXRvcl9pZCI6IjE1NDI2OTYwMjQ3Nzk5MDQ2MTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b8085a93d89919a902870470ccf8a66185e9a731a0a4fdb568fc7086320224af |
| hovercard-subject-tag | pull_request:1628397618 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/112708/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/78cb826174e5ed0b8b5744966759309fbc564aafc56f83a919b15b2f30102a69/python/cpython/pull/112708 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/78cb826174e5ed0b8b5744966759309fbc564aafc56f83a919b15b2f30102a69/python/cpython/pull/112708 |
| og:image:alt | Before:
>python -m timeit -s "from typing import SupportsIndex" "isinstance(0, SupportsIndex)"
Running PGUpdate|x64 interpreter...
1000000 loops, best of 5: 379 nsec per loop... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AlexWaygood |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/112708#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F112708 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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%2F112708 |
|
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 |
| Reload | https://github.com/python/cpython/pull/112708 |
| Reload | https://github.com/python/cpython/pull/112708 |
| Reload | https://github.com/python/cpython/pull/112708 |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/112708 |
|
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 page | https://github.com/python/cpython/pull/112708 |
|
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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| Jump to bottom | https://github.com/python/cpython/pull/112708#issue-comment-box |
| AlexWaygood | https://github.com/AlexWaygood |
| python:main | https://github.com/python/cpython/tree/main |
| AlexWaygood:protocol-costly-super-calls | https://github.com/AlexWaygood/cpython/tree/protocol-costly-super-calls |
|
gh-74690: Optimise isinstance() and issubclass() calls against runtime-checkable protocols by avoiding costly super() calls
| https://github.com/python/cpython/pull/112708#top |
| AlexWaygood | https://github.com/AlexWaygood |
| python:main | https://github.com/python/cpython/tree/main |
| AlexWaygood:protocol-costly-super-calls | https://github.com/AlexWaygood/cpython/tree/protocol-costly-super-calls |
|
Conversation
2
| https://github.com/python/cpython/pull/112708 |
|
Commits
3
| https://github.com/python/cpython/pull/112708/commits |
|
Checks
0
| https://github.com/python/cpython/pull/112708/checks |
|
Files changed
| https://github.com/python/cpython/pull/112708/files |
| Please reload this page | https://github.com/python/cpython/pull/112708 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
|
| https://github.com/AlexWaygood |
| AlexWaygood | https://github.com/AlexWaygood |
| Dec 4, 2023 | https://github.com/python/cpython/pull/112708#issue-2023963096 |
| Please reload this page | https://github.com/python/cpython/pull/112708 |
| Performance of typing._ProtocolMeta._get_protocol_attrs and isinstance #74690 | https://github.com/python/cpython/issues/74690 |
| Please reload this page | https://github.com/python/cpython/pull/112708 |
|
| https://github.com/AlexWaygood |
| pythongh-74690 | https://github.com/python/cpython/issues/74690 |
| : Optimise | https://github.com/python/cpython/pull/112708/commits/ec4051ad0bb9284a27d47a55ef8153ad35541d34 |
| isinstance() | https://github.com/python/cpython/pull/112708/commits/ec4051ad0bb9284a27d47a55ef8153ad35541d34 |
| and | https://github.com/python/cpython/pull/112708/commits/ec4051ad0bb9284a27d47a55ef8153ad35541d34 |
| issubclass() | https://github.com/python/cpython/pull/112708/commits/ec4051ad0bb9284a27d47a55ef8153ad35541d34 |
| calls agai… | https://github.com/python/cpython/pull/112708/commits/ec4051ad0bb9284a27d47a55ef8153ad35541d34 |
| ec4051a | https://github.com/python/cpython/pull/112708/commits/ec4051ad0bb9284a27d47a55ef8153ad35541d34 |
| https://github.com/AlexWaygood |
| AlexWaygood | https://github.com/AlexWaygood |
|
performance
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance |
| Dec 4, 2023 | https://github.com/python/cpython/pull/112708#event-11139773319 |
| https://github.com/AlexWaygood |
| AlexWaygood | https://github.com/AlexWaygood |
| carljm | https://github.com/carljm |
| December 4, 2023 14:17 | https://github.com/python/cpython/pull/112708#event-11139773366 |
| https://github.com/AlexWaygood |
| AlexWaygood | https://github.com/AlexWaygood |
| JelleZijlstra | https://github.com/JelleZijlstra |
| code owner | https://github.com/python/cpython/blob/9560e0d6d7a316341939b4016e47e03bd5bf17c3/.github/CODEOWNERS#L161 |
| December 4, 2023 14:17 | https://github.com/python/cpython/pull/112708#event-11139773560 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Dec 4, 2023 | https://github.com/python/cpython/pull/112708#event-11139774513 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
Dec 4, 2023
| https://github.com/python/cpython/pull/112708#ref-issue-1198974045 |
|
Performance of typing._ProtocolMeta._get_protocol_attrs and isinstance
#74690
| https://github.com/python/cpython/issues/74690 |
| AlexWaygood | https://github.com/AlexWaygood |
| December 4, 2023 14:18 | https://github.com/python/cpython/pull/112708#commits-pushed-ff333fd |
|
| https://github.com/AlexWaygood |
| fix NEWS | https://github.com/python/cpython/pull/112708/commits/ff333fd83617f574ca09571786f40a2ccc8fbbee |
| ff333fd | https://github.com/python/cpython/pull/112708/commits/ff333fd83617f574ca09571786f40a2ccc8fbbee |
|
| https://github.com/AlexWaygood |
| actually fix NEWS | https://github.com/python/cpython/pull/112708/commits/a7d76f6d6644acc2a7d0c1a16909be442b0c9930 |
| a7d76f6 | https://github.com/python/cpython/pull/112708/commits/a7d76f6d6644acc2a7d0c1a16909be442b0c9930 |
| https://github.com/AlexWaygood |
| AlexWaygood | https://github.com/AlexWaygood |
| Dec 4, 2023 | https://github.com/python/cpython/pull/112708#issuecomment-1838741744 |
| Please reload this page | https://github.com/python/cpython/pull/112708 |
| https://github.com/AlexWaygood |
| AlexWaygood | https://github.com/AlexWaygood |
|
topic-typing
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-typing |
| Dec 4, 2023 | https://github.com/python/cpython/pull/112708#event-11139854094 |
| https://github.com/JelleZijlstra |
| JelleZijlstra | https://github.com/JelleZijlstra |
|
Dec 4, 2023
| https://github.com/python/cpython/pull/112708#pullrequestreview-1762720757 |
|
View reviewed changes
| https://github.com/python/cpython/pull/112708/files/a7d76f6d6644acc2a7d0c1a16909be442b0c9930 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
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 |
| Dec 4, 2023 | https://github.com/python/cpython/pull/112708#event-11140723835 |
| https://github.com/carljm |
| carljm | https://github.com/carljm |
|
Dec 4, 2023
| https://github.com/python/cpython/pull/112708#pullrequestreview-1762733897 |
|
View reviewed changes
| https://github.com/python/cpython/pull/112708/files/a7d76f6d6644acc2a7d0c1a16909be442b0c9930 |
| https://github.com/AlexWaygood |
| AlexWaygood | https://github.com/AlexWaygood |
| c718ab9 | https://github.com/python/cpython/commit/c718ab92a584fa658b6a626a744f5a71a048b47c |
| Dec 4, 2023 | https://github.com/python/cpython/pull/112708#event-11140944874 |
| https://github.com/AlexWaygood |
| AlexWaygood | https://github.com/AlexWaygood |
| December 4, 2023 15:41 | https://github.com/python/cpython/pull/112708#event-11140945116 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting merge
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22 |
| Dec 4, 2023 | https://github.com/python/cpython/pull/112708#event-11140945718 |
| aisk | https://github.com/aisk |
|
Feb 11, 2024
| https://github.com/python/cpython/pull/112708#ref-commit-78c8faf |
|
| https://github.com/AlexWaygood |
|
| https://github.com/aisk |
| pythongh-74690 | https://github.com/python/cpython/issues/74690 |
| : Optimise | https://github.com/aisk/cpython/commit/78c8faf329094f2b0d15f7c140c5e48e1df3715f |
| isinstance() | https://github.com/aisk/cpython/commit/78c8faf329094f2b0d15f7c140c5e48e1df3715f |
| and | https://github.com/aisk/cpython/commit/78c8faf329094f2b0d15f7c140c5e48e1df3715f |
| issubclass() | https://github.com/aisk/cpython/commit/78c8faf329094f2b0d15f7c140c5e48e1df3715f |
| calls agai… | https://github.com/aisk/cpython/commit/78c8faf329094f2b0d15f7c140c5e48e1df3715f |
| 78c8faf | https://github.com/aisk/cpython/commit/78c8faf329094f2b0d15f7c140c5e48e1df3715f |
| python#112708 | https://github.com/python/cpython/pull/112708 |
| https://github.com/namka279 |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F112708 |
| Glyphack | https://github.com/Glyphack |
|
Sep 2, 2024
| https://github.com/python/cpython/pull/112708#ref-commit-cb075b6 |
|
| https://github.com/AlexWaygood |
|
| https://github.com/Glyphack |
| pythongh-74690 | https://github.com/python/cpython/issues/74690 |
| : Optimise | https://github.com/Glyphack/cpython/commit/cb075b685fa35423d6d1d377950750219dee8c3b |
| isinstance() | https://github.com/Glyphack/cpython/commit/cb075b685fa35423d6d1d377950750219dee8c3b |
| and | https://github.com/Glyphack/cpython/commit/cb075b685fa35423d6d1d377950750219dee8c3b |
| issubclass() | https://github.com/Glyphack/cpython/commit/cb075b685fa35423d6d1d377950750219dee8c3b |
| calls agai… | https://github.com/Glyphack/cpython/commit/cb075b685fa35423d6d1d377950750219dee8c3b |
| cb075b6 | https://github.com/Glyphack/cpython/commit/cb075b685fa35423d6d1d377950750219dee8c3b |
| python#112708 | https://github.com/python/cpython/pull/112708 |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F112708 |
|
| https://github.com/carljm |
|
carljm
| https://github.com/carljm |
|
| https://github.com/python/cpython/pull/112708/files/a7d76f6d6644acc2a7d0c1a16909be442b0c9930 |
|
| https://github.com/JelleZijlstra |
|
JelleZijlstra
| https://github.com/JelleZijlstra |
|
| https://github.com/python/cpython/pull/112708/files/a7d76f6d6644acc2a7d0c1a16909be442b0c9930 |
|
performance
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance |
|
topic-typing
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-typing |
| Please reload this page | https://github.com/python/cpython/pull/112708 |
|
| https://github.com/AlexWaygood |
|
| https://github.com/namka279 |
|
| https://github.com/carljm |
|
| https://github.com/JelleZijlstra |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |