| 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:f7983847-3f84-87fd-61d8-e2b7df1b41e2 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CAF0:323A96:5EAC1D:89F92F:6A4E0E28 |
| html-safe-nonce | 235bcd5f648aee60c64a6b571903371dbf65883a49469c3eb3b99bcf287cf1e6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUYwOjMyM0E5Njo1RUFDMUQ6ODlGOTJGOjZBNEUwRTI4IiwidmlzaXRvcl9pZCI6IjcxNDQ4ODExNTYxNDMzMjA2MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 56131f5820d0e5505cdf1876d566fc9eba727eee94855acec0be8d3d293d2fca |
| hovercard-subject-tag | pull_request:2031636041 |
| 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/123219/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/499b5321ffb40b08908114437d44a1dd086cac12fa5d26c5bf831575c2a98233/python/cpython/pull/123219 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/499b5321ffb40b08908114437d44a1dd086cac12fa5d26c5bf831575c2a98233/python/cpython/pull/123219 |
| og:image:alt | This PR specializes LOAD_ATTR for shadowed attributes, where the shadowing doesn't change the attribute.
Stats show a 30% reduction in specialization failures for LOAD_ATTR.
Performance might s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | markshannon |
| hostname | github.com |
| expected-hostname | github.com |
| None | df0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6 |
| turbo-cache-control | no-cache |
| 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 | 51470c353b8a1f52a88d3e3cc2014b17ab8cc1ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/123219#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F123219 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| 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 |
| View all resources | https://github.com/resources |
| 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 |
| GitHub Stars | https://stars.github.com |
| 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%2F123219 |
|
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/123219 |
| Reload | https://github.com/python/cpython/pull/123219 |
| Reload | https://github.com/python/cpython/pull/123219 |
| Please reload this page | https://github.com/python/cpython/pull/123219 |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/123219 |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
34.8k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.6k
| 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 |
| markshannon | https://github.com/markshannon |
| python:main | https://github.com/python/cpython/tree/main |
| faster-cpython:specialize-shadowed-load-attr | https://github.com/faster-cpython/cpython/tree/specialize-shadowed-load-attr |
| Conversation | https://github.com/python/cpython/pull/123219 |
| Commits12 (12) | https://github.com/python/cpython/pull/123219/commits |
| Checks | https://github.com/python/cpython/pull/123219/checks |
| Files changed | https://github.com/python/cpython/pull/123219/files |
| GH-123040: Specialize shadowed LOAD_ATTR. | https://github.com/python/cpython/pull/123219#top |
| markshannon | https://github.com/markshannon |
| python:main | https://github.com/python/cpython/tree/main |
| faster-cpython:specialize-shadowed-load-attr | https://github.com/faster-cpython/cpython/tree/specialize-shadowed-load-attr |
|
| https://github.com/markshannon |
| markshannon | https://github.com/markshannon |
| Aug 22, 2024 | https://github.com/python/cpython/pull/123219#issue-2480213028 |
| Please reload this page | https://github.com/python/cpython/pull/123219 |
| Stats | https://github.com/faster-cpython/benchmarking-public/blob/main/results/bm-20240821-3.14.0a0-975089f/bm-20240821-azure-x86_64-faster%252dcpython-specialize_shadowed_-3.14.0a0-975089f-pystats-vs-base.md |
| Performance | https://github.com/faster-cpython/benchmarking-public/tree/main/results/bm-20240821-3.14.0a0-975089f |
| Unnecessary specialization failures of LOAD_ATTR and STORE_ATTR when attributes are shadowed by the object's class. #123040 | https://github.com/python/cpython/issues/123040 |
| Please reload this page | https://github.com/python/cpython/pull/123219 |
| markshannon | https://github.com/markshannon |
| August 16, 2024 15:15 | https://github.com/python/cpython/pull/123219#commits-pushed-5e4c3d3 |
|
| https://github.com/markshannon |
| Specialize LOAD_ATTR for instance values, even when shadowing class a… | https://github.com/python/cpython/pull/123219/commits/5e4c3d3a70d94c54f2b5626b35f4d9780aee2a86 |
| 5e4c3d3 | https://github.com/python/cpython/pull/123219/commits/5e4c3d3a70d94c54f2b5626b35f4d9780aee2a86 |
|
| https://github.com/markshannon |
| Don't count as shadowed unless optimization fails | https://github.com/python/cpython/pull/123219/commits/a983591215d42f846521d8ff8c8ad88ecf57b028 |
| a983591 | https://github.com/python/cpython/pull/123219/commits/a983591215d42f846521d8ff8c8ad88ecf57b028 |
|
| https://github.com/markshannon |
| Add LOAD_ATTR_CLASS_WITH_METACLASS_CHECK specialization and handle cl… | https://github.com/python/cpython/pull/123219/commits/c0b471104d40470d4039574abdf30fa4ed565745 |
| c0b4711 | https://github.com/python/cpython/pull/123219/commits/c0b471104d40470d4039574abdf30fa4ed565745 |
|
| https://github.com/markshannon |
| Merge branch 'main' into specialize-shadowed-load-attr | https://github.com/python/cpython/pull/123219/commits/5dfc5299953e85145f5a02379023ef0b55eb7a8c |
| 5dfc529 | https://github.com/python/cpython/pull/123219/commits/5dfc5299953e85145f5a02379023ef0b55eb7a8c |
|
| https://github.com/markshannon |
| Merge branch 'specialize-load-attr-class-shadowed' into specialize-sh… | https://github.com/python/cpython/pull/123219/commits/b0f4953c078c387e30a76993b53f8c6a288b8ad5 |
| b0f4953 | https://github.com/python/cpython/pull/123219/commits/b0f4953c078c387e30a76993b53f8c6a288b8ad5 |
|
| https://github.com/markshannon |
| Differentiate between split keys and non-string keys in stats | https://github.com/python/cpython/pull/123219/commits/6f4843a44111f3b04f137d7bfc1380837070df54 |
| 6f4843a | https://github.com/python/cpython/pull/123219/commits/6f4843a44111f3b04f137d7bfc1380837070df54 |
|
| https://github.com/markshannon |
| Merge branch 'main' into specialize-shadowed-load-attr | https://github.com/python/cpython/pull/123219/commits/02137b30a615915ea3664b636d6ce60fbcc27d3b |
| 02137b3 | https://github.com/python/cpython/pull/123219/commits/02137b30a615915ea3664b636d6ce60fbcc27d3b |
|
| https://github.com/markshannon |
| Reorganize code | https://github.com/python/cpython/pull/123219/commits/ba7b63c2aec5a721ba9c33cd14862756d4fb12b5 |
| ba7b63c | https://github.com/python/cpython/pull/123219/commits/ba7b63c2aec5a721ba9c33cd14862756d4fb12b5 |
|
| https://github.com/markshannon |
| Merge branch 'main' into specialize-shadowed-load-attr | https://github.com/python/cpython/pull/123219/commits/975089fe78955672bb89cadb20940dfbf56df80a |
| 975089f | https://github.com/python/cpython/pull/123219/commits/975089fe78955672bb89cadb20940dfbf56df80a |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
Aug 22, 2024
| https://github.com/python/cpython/pull/123219#ref-issue-2468488242 |
|
Unnecessary specialization failures of LOAD_ATTR and STORE_ATTR when attributes are shadowed by the object's class.
#123040
| https://github.com/python/cpython/issues/123040 |
| 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 |
| Aug 22, 2024 | https://github.com/python/cpython/pull/123219#event-13973692880 |
| https://github.com/markshannon |
| markshannon | https://github.com/markshannon |
|
skip news
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22 |
| Aug 22, 2024 | https://github.com/python/cpython/pull/123219#event-13973697854 |
|
| https://github.com/markshannon |
| Make function static | https://github.com/python/cpython/pull/123219/commits/b7dbcc8bc87c775d0fddb8985b2361e013797d9c |
| b7dbcc8 | https://github.com/python/cpython/pull/123219/commits/b7dbcc8bc87c775d0fddb8985b2361e013797d9c |
| https://github.com/iritkatriel |
| iritkatriel | https://github.com/iritkatriel |
|
Aug 22, 2024
| https://github.com/python/cpython/pull/123219#pullrequestreview-2254235927 |
|
View reviewed changes
| https://github.com/python/cpython/pull/123219/files/975089fe78955672bb89cadb20940dfbf56df80a |
| iritkatriel | https://github.com/iritkatriel |
| https://github.com/python/cpython/pull/123219#pullrequestreview-2254235927 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Stats | https://github.com/faster-cpython/benchmarking-public/blob/main/results/bm-20240821-3.14.0a0-975089f/bm-20240821-azure-x86_64-faster%252dcpython-specialize_shadowed_-3.14.0a0-975089f-pystats-vs-base.md |
| Performance | https://github.com/faster-cpython/benchmarking-public/tree/main/results/bm-20240821-3.14.0a0-975089f |
| Please reload this page | https://github.com/python/cpython/pull/123219 |
| Python/specialize.c | https://github.com/python/cpython/pull/123219/files/975089fe78955672bb89cadb20940dfbf56df80a#diff-22e653d878778ca28317261f7826545288d02fd9980cf485d0329f28a34993f2 |
| Please reload this page | https://github.com/python/cpython/pull/123219 |
| Python/specialize.c | https://github.com/python/cpython/pull/123219/files/975089fe78955672bb89cadb20940dfbf56df80a#diff-22e653d878778ca28317261f7826545288d02fd9980cf485d0329f28a34993f2 |
| Please reload this page | https://github.com/python/cpython/pull/123219 |
| Python/specialize.c | https://github.com/python/cpython/pull/123219/files/975089fe78955672bb89cadb20940dfbf56df80a#diff-22e653d878778ca28317261f7826545288d02fd9980cf485d0329f28a34993f2 |
| Please reload this page | https://github.com/python/cpython/pull/123219 |
| https://github.com/markshannon |
| markshannon | https://github.com/markshannon |
| Aug 22, 2024 | https://github.com/python/cpython/pull/123219#issuecomment-2304661984 |
| Please reload this page | https://github.com/python/cpython/pull/123219 |
| Please reload this page | https://github.com/python/cpython/pull/123219 |
| markshannon | https://github.com/markshannon |
| August 22, 2024 14:27 | https://github.com/python/cpython/pull/123219#commits-pushed-4b37d6c |
|
| https://github.com/markshannon |
| Tidy logic in _Py_Specialize_LoadAttr | https://github.com/python/cpython/pull/123219/commits/4b37d6cf959c2f38e040f2a06ea1cb3b6c0fb7ab |
| 4b37d6c | https://github.com/python/cpython/pull/123219/commits/4b37d6cf959c2f38e040f2a06ea1cb3b6c0fb7ab |
|
| https://github.com/markshannon |
| Fix compiler wanring and clarify comment | https://github.com/python/cpython/pull/123219/commits/cc92e97639d66d7a6c9d66a65d710197c9a457b0 |
| cc92e97 | https://github.com/python/cpython/pull/123219/commits/cc92e97639d66d7a6c9d66a65d710197c9a457b0 |
| https://github.com/iritkatriel |
| iritkatriel | https://github.com/iritkatriel |
| Aug 22, 2024 | https://github.com/python/cpython/pull/123219#issuecomment-2304776328 |
| @brandtbucher | https://github.com/brandtbucher |
| @Fidget-Spinner | https://github.com/Fidget-Spinner |
| Please reload this page | https://github.com/python/cpython/pull/123219 |
| https://github.com/brandtbucher |
| brandtbucher | https://github.com/brandtbucher |
|
Aug 23, 2024
| https://github.com/python/cpython/pull/123219#pullrequestreview-2256033814 |
|
View reviewed changes
| https://github.com/python/cpython/pull/123219/files/cc92e97639d66d7a6c9d66a65d710197c9a457b0 |
| brandtbucher | https://github.com/brandtbucher |
| https://github.com/python/cpython/pull/123219#pullrequestreview-2256033814 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/123219 |
| 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 |
| Aug 23, 2024 | https://github.com/python/cpython/pull/123219#event-13986252039 |
| https://github.com/markshannon |
| markshannon | https://github.com/markshannon |
| 5d3201f | https://github.com/python/cpython/commit/5d3201fe3f76aeba33e9e5956ba80a116e422bd0 |
| Aug 23, 2024 | https://github.com/python/cpython/pull/123219#event-13990604224 |
| 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 |
| Aug 23, 2024 | https://github.com/python/cpython/pull/123219#event-13990605015 |
| https://github.com/markshannon |
| markshannon | https://github.com/markshannon |
| August 23, 2024 09:48 | https://github.com/python/cpython/pull/123219#event-13990910797 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
| 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%2F123219 |
|
| https://github.com/iritkatriel |
|
iritkatriel
| https://github.com/iritkatriel |
|
| https://github.com/python/cpython/pull/123219/files/975089fe78955672bb89cadb20940dfbf56df80a |
|
| https://github.com/brandtbucher |
|
brandtbucher
| https://github.com/brandtbucher |
|
| https://github.com/python/cpython/pull/123219/files/cc92e97639d66d7a6c9d66a65d710197c9a457b0 |
|
skip news
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22 |
| Please reload this page | https://github.com/python/cpython/pull/123219 |
|
| https://github.com/markshannon |
|
| https://github.com/iritkatriel |
|
| https://github.com/brandtbucher |
|
| 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 |