René's URL Explorer Experiment


Title: bpo-31336: Speed up type creation, which is highly dominated by slow dict lookups. by scoder · Pull Request #3279 · python/cpython · GitHub

Open Graph Title: bpo-31336: Speed up type creation, which is highly dominated by slow dict lookups. by scoder · Pull Request #3279 · python/cpython

X Title: bpo-31336: Speed up type creation, which is highly dominated by slow dict lookups. by scoder · Pull Request #3279 · python/cpython

Description: 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/issue31336

Open Graph Description: 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...

X Description: 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/...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:7ef7a454-9b45-0b46-6fc8-f4199d55c6c4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC19E:24FAA0:247CF64:3438DCF:6A58ED8C
html-safe-nonce952aa32677ccb8d4000fada8613a65e4562905f11a70ce8cdfed8790180acedd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTlFOjI0RkFBMDoyNDdDRjY0OjM0MzhEQ0Y6NkE1OEVEOEMiLCJ2aXNpdG9yX2lkIjoiNjI4OTU3MTY3OTM3MjM3MzM4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacff54f428994aedf791b4324bbbe8dc3e05c62a28b804500140bfc972ccc98fc5
hovercard-subject-tagpull_request:139139121
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/3279/files
twitter:imagehttps://avatars.githubusercontent.com/u/491659?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/491659?s=400&v=4
og:image:altThis 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://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 AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%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
Reloadhttps://github.com/python/cpython/pull/3279/files
Reloadhttps://github.com/python/cpython/pull/3279/files
Reloadhttps://github.com/python/cpython/pull/3279/files
Please reload this pagehttps://github.com/python/cpython/pull/3279/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
serhiy-storchakahttps://github.com/serhiy-storchaka
python:masterhttps://github.com/python/cpython/tree/master
scoder:_fast_pytype_lookuphttps://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 pagehttps://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 pagehttps://github.com/python/cpython/pull/3279/files
Please reload this pagehttps://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.rsthttps://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.chttps://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
vstinnerhttps://github.com/vstinner
Sep 26, 2017https://github.com/python/cpython/pull/3279/files#r141048394
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/3279/files
serhiy-storchakahttps://github.com/serhiy-storchaka
Sep 10, 2017https://github.com/python/cpython/pull/3279/files#r137956962
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/3279/files
scoderhttps://github.com/scoder
Sep 10, 2017https://github.com/python/cpython/pull/3279/files#r137958068
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://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
scoderhttps://github.com/scoder
Sep 16, 2017https://github.com/python/cpython/pull/3279/files#r139289153
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/3279/files
https://github.com/python/cpython/pull/3279/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
serhiy-storchakahttps://github.com/serhiy-storchaka
Sep 4, 2017https://github.com/python/cpython/pull/3279/files#r136815648
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/3279/files
scoderhttps://github.com/scoder
Sep 10, 2017https://github.com/python/cpython/pull/3279/files#r137956379
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/3279/files
vstinnerhttps://github.com/vstinner
Sep 15, 2017https://github.com/python/cpython/pull/3279/files#r139139299
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/3279/files
serhiy-storchakahttps://github.com/serhiy-storchaka
Sep 15, 2017https://github.com/python/cpython/pull/3279/files#r139151692
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/3279/files
scoderhttps://github.com/scoder
Sep 15, 2017https://github.com/python/cpython/pull/3279/files#r139160255
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/3279/files
vstinnerhttps://github.com/vstinner
Sep 11, 2017https://github.com/python/cpython/pull/3279/files#r138108642
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/3279/files
scoderhttps://github.com/scoder
Sep 11, 2017https://github.com/python/cpython/pull/3279/files#r138119111
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://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
vstinnerhttps://github.com/vstinner
Sep 15, 2017https://github.com/python/cpython/pull/3279/files#r139139543
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/3279/files
scoderhttps://github.com/scoder
Sep 15, 2017https://github.com/python/cpython/pull/3279/files#r139160828
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://bugs.python.org/issue31465https://bugs.python.org/issue31465
Please reload this pagehttps://github.com/python/cpython/pull/3279/files
https://github.com/python/cpython/pull/3279/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
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.