| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:19200a37-4b31-8c03-7804-9b6b0d74940a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B936:70ED5:6F0E5A:95CB24:6A580E34 |
| html-safe-nonce | 6255b6151c632e9d150683f6475c8b06343d0bf7151ea614967c954424be88f0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTM2OjcwRUQ1OjZGMEU1QTo5NUNCMjQ6NkE1ODBFMzQiLCJ2aXNpdG9yX2lkIjoiNDcxNTQ1MjIxOTYyOTUwNjEwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 048e95e2400fc0e4f68276e3ce99a64ac63703e72c8a41a068fd70ba47038ec7 |
| hovercard-subject-tag | pull_request:2464579720 |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/132618/files |
| twitter:image | https://avatars.githubusercontent.com/u/67315?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/67315?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 49c8c15fabcbf356d607a90ca115c13b273e42ff8b74155de050fd229a9b0121 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3fb1f684e7a833eb1b2d01d39875a2b52cb4fe9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://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 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/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/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/enterprise/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%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 |
| Reload | https://github.com/python/cpython/pull/132618/files |
| Reload | https://github.com/python/cpython/pull/132618/files |
| Reload | https://github.com/python/cpython/pull/132618/files |
| Please reload this page | https://github.com/python/cpython/pull/132618/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://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 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 |
| sergey-miryanov | https://github.com/sergey-miryanov |
| python:main | https://github.com/python/cpython/tree/main |
| sergey-miryanov:gh-132042-precalc-mro-dict | https://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 page | https://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 page | https://github.com/python/cpython/pull/132618/files |
| Please reload this page | https://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.py | https://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.c | https://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 page | https://github.com/python/cpython/pull/132618/files |
|
| https://github.com/python/cpython/pull/132618/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872 |
| Please reload this page | https://github.com/python/cpython/pull/132618/files |
|
| 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 |