René's URL Explorer Experiment


Title: gh-109653: Avoid a top-level import of `types` in `functools` by AlexWaygood · Pull Request #109804 · python/cpython · GitHub

Open Graph Title: gh-109653: Avoid a top-level import of `types` in `functools` by AlexWaygood · Pull Request #109804 · python/cpython

X Title: gh-109653: Avoid a top-level import of `types` in `functools` by AlexWaygood · Pull Request #109804 · python/cpython

Description: This reduces the import time of functools by around 13%, according to my measurements (using a PGO-optimised non-debug build, on Windows) Issue: Improve import time of various stdlib modules #109653

Open Graph Description: This reduces the import time of functools by around 13%, according to my measurements (using a PGO-optimised non-debug build, on Windows) Issue: Improve import time of various stdlib modules #109653

X Description: This reduces the import time of functools by around 13%, according to my measurements (using a PGO-optimised non-debug build, on Windows) Issue: Improve import time of various stdlib modules #109653

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:9b047f1e-9755-6190-a29f-92562a33bf6d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8D7C:2F5B11:B1F51A:F58DA9:6969F11E
html-safe-nonce9ca7a08133917043a9b75e3a73cc0de39f86590a42d3c0443074993a288cacb3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDdDOjJGNUIxMTpCMUY1MUE6RjU4REE5OjY5NjlGMTFFIiwidmlzaXRvcl9pZCI6IjU0NjEwOTU4NDgyODU0MzQxNDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaccf9985c9d6d582dfcbad3882b6294986bd1739c2aa6a90c3dea5c0e836f04afa
hovercard-subject-tagpull_request:1527691051
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/109804/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/f9a2e98b398c6e9bc7cdf8c11c7f9c31b2ca3363c5f6975831c2a04c2ac2206f/python/cpython/pull/109804
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f9a2e98b398c6e9bc7cdf8c11c7f9c31b2ca3363c5f6975831c2a04c2ac2206f/python/cpython/pull/109804
og:image:altThis reduces the import time of functools by around 13%, according to my measurements (using a PGO-optimised non-debug build, on Windows) Issue: Improve import time of various stdlib modules #109653
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAlexWaygood
hostnamegithub.com
expected-hostnamegithub.com
None7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebdde15ad1b403e23b08bbd89b53fbe6bdf688cad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/109804#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F109804
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2F109804
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
Reloadhttps://github.com/python/cpython/pull/109804
Reloadhttps://github.com/python/cpython/pull/109804
Reloadhttps://github.com/python/cpython/pull/109804
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/109804
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 pagehttps://github.com/python/cpython/pull/109804
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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/109804#issue-comment-box
AlexWaygoodhttps://github.com/AlexWaygood
python:mainhttps://github.com/python/cpython/tree/main
AlexWaygood:functools-import-timehttps://github.com/AlexWaygood/cpython/tree/functools-import-time
gh-109653: Avoid a top-level import of types in functools https://github.com/python/cpython/pull/109804#top
AlexWaygoodhttps://github.com/AlexWaygood
python:mainhttps://github.com/python/cpython/tree/main
AlexWaygood:functools-import-timehttps://github.com/AlexWaygood/cpython/tree/functools-import-time
Conversation 0 https://github.com/python/cpython/pull/109804
Commits 1 https://github.com/python/cpython/pull/109804/commits
Checks 0 https://github.com/python/cpython/pull/109804/checks
Files changed 2 https://github.com/python/cpython/pull/109804/files
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Sep 24, 2023https://github.com/python/cpython/pull/109804#issue-1910218170
Please reload this pagehttps://github.com/python/cpython/pull/109804
Improve import time of various stdlib modules #109653https://github.com/python/cpython/issues/109653
Please reload this pagehttps://github.com/python/cpython/pull/109804
https://github.com/AlexWaygood
pythongh-109653https://github.com/python/cpython/issues/109653
: Avoid a top-level import ofhttps://github.com/python/cpython/pull/109804/commits/46cf001c97ae13acd022f4e264b25af20ebf6e77
typeshttps://github.com/python/cpython/pull/109804/commits/46cf001c97ae13acd022f4e264b25af20ebf6e77
inhttps://github.com/python/cpython/pull/109804/commits/46cf001c97ae13acd022f4e264b25af20ebf6e77
functoolshttps://github.com/python/cpython/pull/109804/commits/46cf001c97ae13acd022f4e264b25af20ebf6e77
46cf001https://github.com/python/cpython/pull/109804/commits/46cf001c97ae13acd022f4e264b25af20ebf6e77
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
rhettingerhttps://github.com/rhettinger
code ownerhttps://github.com/python/cpython/blob/649768fb6781ba810df44017fee1975a11d65e2f/.github/CODEOWNERS#L147
September 24, 2023 12:29https://github.com/python/cpython/pull/109804#event-10455154544
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Sep 24, 2023https://github.com/python/cpython/pull/109804#event-10455154608
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Sep 24, 2023 https://github.com/python/cpython/pull/109804#ref-issue-1907228354
Improve import time of various stdlib modules #109653 https://github.com/python/cpython/issues/109653
https://github.com/rhettinger
rhettingerhttps://github.com/rhettinger
Sep 24, 2023 https://github.com/python/cpython/pull/109804#pullrequestreview-1641090617
View reviewed changes https://github.com/python/cpython/pull/109804/files/46cf001c97ae13acd022f4e264b25af20ebf6e77
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Sep 24, 2023https://github.com/python/cpython/pull/109804#event-10455539817
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
40d1de7https://github.com/python/cpython/commit/40d1de758100368bce36ad7674bd937acca153bd
Sep 24, 2023https://github.com/python/cpython/pull/109804#event-10455541489
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
September 24, 2023 16:18https://github.com/python/cpython/pull/109804#event-10455541523
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Sep 24, 2023https://github.com/python/cpython/pull/109804#event-10455541566
csm10495https://github.com/csm10495
Sep 28, 2023 https://github.com/python/cpython/pull/109804#ref-commit-bb9da70
https://github.com/AlexWaygood
https://github.com/csm10495
pythongh-109653https://github.com/python/cpython/issues/109653
: Avoid a top-level import ofhttps://github.com/csm10495/cpython/commit/bb9da70acb315726e889ebb42f1196507c42de36
typeshttps://github.com/csm10495/cpython/commit/bb9da70acb315726e889ebb42f1196507c42de36
inhttps://github.com/csm10495/cpython/commit/bb9da70acb315726e889ebb42f1196507c42de36
functoolshttps://github.com/csm10495/cpython/commit/bb9da70acb315726e889ebb42f1196507c42de36
(https://github.com/csm10495/cpython/commit/bb9da70acb315726e889ebb42f1196507c42de36
p…https://github.com/python/cpython/pull/109804
bb9da70https://github.com/csm10495/cpython/commit/bb9da70acb315726e889ebb42f1196507c42de36
…ython#109804https://github.com/python/cpython/pull/109804
Glyphackhttps://github.com/Glyphack
Sep 2, 2024 https://github.com/python/cpython/pull/109804#ref-commit-f8e689e
https://github.com/AlexWaygood
https://github.com/Glyphack
pythongh-109653https://github.com/python/cpython/issues/109653
: Avoid a top-level import ofhttps://github.com/Glyphack/cpython/commit/f8e689e9e98e7ec3c4e7f77e1ef53b46c60ddae5
typeshttps://github.com/Glyphack/cpython/commit/f8e689e9e98e7ec3c4e7f77e1ef53b46c60ddae5
inhttps://github.com/Glyphack/cpython/commit/f8e689e9e98e7ec3c4e7f77e1ef53b46c60ddae5
functoolshttps://github.com/Glyphack/cpython/commit/f8e689e9e98e7ec3c4e7f77e1ef53b46c60ddae5
(https://github.com/Glyphack/cpython/commit/f8e689e9e98e7ec3c4e7f77e1ef53b46c60ddae5
p…https://github.com/python/cpython/pull/109804
f8e689ehttps://github.com/Glyphack/cpython/commit/f8e689e9e98e7ec3c4e7f77e1ef53b46c60ddae5
…ython#109804https://github.com/python/cpython/pull/109804
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F109804
https://github.com/rhettinger
rhettinger https://github.com/rhettinger
https://github.com/python/cpython/pull/109804/files/46cf001c97ae13acd022f4e264b25af20ebf6e77
Please reload this pagehttps://github.com/python/cpython/pull/109804
https://github.com/AlexWaygood
https://github.com/rhettinger
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.