| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7ef7a454-9b45-0b46-6fc8-f4199d55c6c4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C19E:24FAA0:247CF64:3438DCF:6A58ED8C |
| html-safe-nonce | 952aa32677ccb8d4000fada8613a65e4562905f11a70ce8cdfed8790180acedd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTlFOjI0RkFBMDoyNDdDRjY0OjM0MzhEQ0Y6NkE1OEVEOEMiLCJ2aXNpdG9yX2lkIjoiNjI4OTU3MTY3OTM3MjM3MzM4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ff54f428994aedf791b4324bbbe8dc3e05c62a28b804500140bfc972ccc98fc5 |
| hovercard-subject-tag | pull_request:139139121 |
| 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/3279/files |
| twitter:image | https://avatars.githubusercontent.com/u/491659?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/491659?s=400&v=4 |
| og:image:alt | This gives me around 20% better performance for class Test: pass. Admittedly, that's a micro-benchmark, but the change is obvious enough to not merit staying slow.
https://bugs.python.org/issu... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/3279/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F3279%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%2F3279%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/3279/files |
| Reload | https://github.com/python/cpython/pull/3279/files |
| Reload | https://github.com/python/cpython/pull/3279/files |
| Please reload this page | https://github.com/python/cpython/pull/3279/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/3279/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 |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| python:master | https://github.com/python/cpython/tree/master |
| scoder:_fast_pytype_lookup | https://github.com/scoder/cpython/tree/_fast_pytype_lookup |
|
Conversation
61
| https://github.com/python/cpython/pull/3279 |
|
Commits
20
| https://github.com/python/cpython/pull/3279/commits |
|
Checks
0
| https://github.com/python/cpython/pull/3279/checks |
|
Files changed
| https://github.com/python/cpython/pull/3279/files |
| Please reload this page | https://github.com/python/cpython/pull/3279/files |
|
bpo-31336: Speed up type creation, which is highly dominated by slow dict lookups.
| https://github.com/python/cpython/pull/3279/files#top |
|
Show all changes
20 commits
| https://github.com/python/cpython/pull/3279/files |
|
0a865c9
Speed up type creation, which is highly dominated by slow dict lookups.
Sep 4, 2017
| https://github.com/python/cpython/pull/3279/commits/0a865c9309c6548fe6380500f02240d1995d3b16 |
|
c4779e3
Update comment after changing the function call that it refers to.
Sep 4, 2017
| https://github.com/python/cpython/pull/3279/commits/c4779e3f7c06d1e53386f18e6bad3b045741369d |
|
ff2ea63
Ignore any errors (however unlikely) that may happen during the mro c…
Sep 4, 2017
| https://github.com/python/cpython/pull/3279/commits/ff2ea631ebc3b64f8785cfdbaa922cd3546bd1b1 |
|
76b1986
Extract non-caching code from _PyType_Lookup() to use it directly fro…
Sep 5, 2017
| https://github.com/python/cpython/pull/3279/commits/76b1986e093e9b236106df3abb7dfcd6f60e43ad |
|
6f98485
Avoid some useless overhead for the no-basetype case. If "object" eve…
Sep 5, 2017
| https://github.com/python/cpython/pull/3279/commits/6f9848520ca858ae72d14ee99d0d86796b664981 |
|
d9b726e
Add comment.
Sep 6, 2017
| https://github.com/python/cpython/pull/3279/commits/d9b726e6ddaae31b01b41c33572e4f6f3fa1a63b |
|
be15255
Avoid uselessly searching empty bases for a metaclass. This is quite …
Sep 6, 2017
| https://github.com/python/cpython/pull/3279/commits/be15255ff763ce1018a7318590dc37a4c1e04a00 |
|
0736226
Avoid unsafe handling of borrowed "mro" reference during hash() call.
Sep 10, 2017
| https://github.com/python/cpython/pull/3279/commits/0736226d67b43c70013a397be7157a7317b42057 |
|
8bc783f
Clean up code and formatting a little.
Sep 10, 2017
| https://github.com/python/cpython/pull/3279/commits/8bc783f07e60c39afa464029b8d58443a0140137 |
|
66648dd
Add braces for code style reasons.
Sep 10, 2017
| https://github.com/python/cpython/pull/3279/commits/66648dd568cfefdf1f003bce8fc2aced4ec6972b |
|
85fb3ae
Give internal helper function a local name that does not resemble (ex…
Sep 10, 2017
| https://github.com/python/cpython/pull/3279/commits/85fb3aedd4a878cbd18145c92b32a03c7fdcbfeb |
|
09e716a
Allow non-dict types for the class dict when looking up names and cal…
Sep 11, 2017
| https://github.com/python/cpython/pull/3279/commits/09e716a2e8eda777400da779c5a4f1b5e90375f6 |
|
1d52082
Lazily calculate name hash in find_name_in_mro() to avoid potential r…
Sep 11, 2017
| https://github.com/python/cpython/pull/3279/commits/1d52082bb544de02901f922242942253497cba58 |
|
f09bfd3
Revert "Lazily calculate name hash in find_name_in_mro() to avoid pot…
Sep 11, 2017
| https://github.com/python/cpython/pull/3279/commits/f09bfd3fe764ae5cfb18c2a8b334964c76566c91 |
|
824d7cb
Revert "Allow non-dict types for the class dict when looking up names…
Sep 11, 2017
| https://github.com/python/cpython/pull/3279/commits/824d7cb25cd25368e9d04c5be5f75c8c790d8447 |
|
5184191
add news entry for faster class creation
Sep 13, 2017
| https://github.com/python/cpython/pull/3279/commits/51841915d6f5f87c7f3559c7c83d0b2ce8ffebff |
|
4efde8e
Change nice interface of "find_name_in_mro()" to evil interface eatin…
Sep 13, 2017
| https://github.com/python/cpython/pull/3279/commits/4efde8ea72195e987a7946985b22725b1d8f4e3a |
|
f5bce2a
Mention amount of speedup in News entry.
Sep 13, 2017
| https://github.com/python/cpython/pull/3279/commits/f5bce2a5494ee5856677d6345a55254e6cff2607 |
|
02bfef0
Revert "Change nice interface of "find_name_in_mro()" to evil interfa…
Sep 14, 2017
| https://github.com/python/cpython/pull/3279/commits/02bfef0f8dbe7b51e6f3c231c0d3d7a2554687ca |
|
2497858
Guard against external live exceptions when calling find_name_in_mro(…
Sep 14, 2017
| https://github.com/python/cpython/pull/3279/commits/24978587ccaebb90ac858c6285b6d793a47ed969 |
|
Clear filters
| https://github.com/python/cpython/pull/3279/files |
| Please reload this page | https://github.com/python/cpython/pull/3279/files |
| Please reload this page | https://github.com/python/cpython/pull/3279/files |
|
2017-09-13-12-04-23.bpo-31336.gi2ahY.rst
| https://github.com/python/cpython/pull/3279/files#diff-76c093ea265f9ee82a9b4696914d23103567a66b9abf5f691cac1bda3ad1aa80 |
|
typeobject.c
| https://github.com/python/cpython/pull/3279/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872 |
| Misc/NEWS.d/next/Core and Builtins/2017-09-13-12-04-23.bpo-31336.gi2ahY.rst | https://github.com/python/cpython/pull/3279/files#diff-76c093ea265f9ee82a9b4696914d23103567a66b9abf5f691cac1bda3ad1aa80 |
|
View file
| https://github.com/scoder/cpython/blob/24978587ccaebb90ac858c6285b6d793a47ed969/Misc/NEWS.d/next/Core%20and%20Builtins/2017-09-13-12-04-23.bpo-31336.gi2ahY.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/3279/{{ revealButtonHref }} |
| Objects/typeobject.c | https://github.com/python/cpython/pull/3279/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872 |
|
View file
| https://github.com/scoder/cpython/blob/24978587ccaebb90ac858c6285b6d793a47ed969/Objects/typeobject.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/3279/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/3279/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872 |
| vstinner | https://github.com/vstinner |
| Sep 26, 2017 | https://github.com/python/cpython/pull/3279/files#r141048394 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3279/files |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| Sep 10, 2017 | https://github.com/python/cpython/pull/3279/files#r137956962 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3279/files |
| scoder | https://github.com/scoder |
| Sep 10, 2017 | https://github.com/python/cpython/pull/3279/files#r137958068 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3279/files |
|
| https://github.com/python/cpython/pull/3279/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872 |
|
| https://github.com/python/cpython/pull/3279/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872 |
| scoder | https://github.com/scoder |
| Sep 16, 2017 | https://github.com/python/cpython/pull/3279/files#r139289153 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3279/files |
|
| https://github.com/python/cpython/pull/3279/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872 |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| Sep 4, 2017 | https://github.com/python/cpython/pull/3279/files#r136815648 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3279/files |
| scoder | https://github.com/scoder |
| Sep 10, 2017 | https://github.com/python/cpython/pull/3279/files#r137956379 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3279/files |
| vstinner | https://github.com/vstinner |
| Sep 15, 2017 | https://github.com/python/cpython/pull/3279/files#r139139299 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3279/files |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| Sep 15, 2017 | https://github.com/python/cpython/pull/3279/files#r139151692 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3279/files |
| scoder | https://github.com/scoder |
| Sep 15, 2017 | https://github.com/python/cpython/pull/3279/files#r139160255 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3279/files |
| vstinner | https://github.com/vstinner |
| Sep 11, 2017 | https://github.com/python/cpython/pull/3279/files#r138108642 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3279/files |
| scoder | https://github.com/scoder |
| Sep 11, 2017 | https://github.com/python/cpython/pull/3279/files#r138119111 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3279/files |
|
| https://github.com/python/cpython/pull/3279/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872 |
|
| https://github.com/python/cpython/pull/3279/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872 |
|
| https://github.com/python/cpython/pull/3279/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872 |
| vstinner | https://github.com/vstinner |
| Sep 15, 2017 | https://github.com/python/cpython/pull/3279/files#r139139543 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/3279/files |
| scoder | https://github.com/scoder |
| Sep 15, 2017 | https://github.com/python/cpython/pull/3279/files#r139160828 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| https://bugs.python.org/issue31465 | https://bugs.python.org/issue31465 |
| Please reload this page | https://github.com/python/cpython/pull/3279/files |
|
| https://github.com/python/cpython/pull/3279/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872 |
|
| 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 |