René's URL Explorer Experiment


Title: gh-118761: Improve import time for `pstats` and `zipfile` by removing imports to `typing` by picnixz · Pull Request #128981 · python/cpython · GitHub

Open Graph Title: gh-118761: Improve import time for `pstats` and `zipfile` by removing imports to `typing` by picnixz · Pull Request #128981 · python/cpython

X Title: gh-118761: Improve import time for `pstats` and `zipfile` by removing imports to `typing` by picnixz · Pull Request #128981 · python/cpython

Description: Those two imports are not really needed and we can reduce the import time of zipfile, or anything import it. Roughly, importing zipfile takes 8ms with this PR while it takes 10ms on main. Also, zip...

Open Graph Description: Those two imports are not really needed and we can reduce the import time of zipfile, or anything import it. Roughly, importing zipfile takes 8ms with this PR while it takes 10ms on main. Also, zip...

X Description: Those two imports are not really needed and we can reduce the import time of zipfile, or anything import it. Roughly, importing zipfile takes 8ms with this PR while it takes 10ms on main. Also, zip...

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

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:e7cf2d0b-afd4-eacb-a029-01da8f43a582
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE822:CE9E9:8380C:B5CBB:696A0214
html-safe-nonce26c3e815c890e041a97fb0ff36ae213792a0a151a205464725dcacc86c34c37b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODIyOkNFOUU5OjgzODBDOkI1Q0JCOjY5NkEwMjE0IiwidmlzaXRvcl9pZCI6IjExNjQzODMzNjUzMzkxNTI5MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac33d3eba456bc18be6db49713a3125094f0748797c8b0c7a143edb44abece3ca7
hovercard-subject-tagpull_request:2285601975
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/128981/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/9fb78b210a9c12d703690e18ed6bc61115b68bfcdf3ec39ef559da7258033219/python/cpython/pull/128981
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9fb78b210a9c12d703690e18ed6bc61115b68bfcdf3ec39ef559da7258033219/python/cpython/pull/128981
og:image:altThose two imports are not really needed and we can reduce the import time of zipfile, or anything import it. Roughly, importing zipfile takes 8ms with this PR while it takes 10ms on main. Also, zip...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepicnixz
hostnamegithub.com
expected-hostnamegithub.com
None578c119ff0247c8b2f2491fbf4fc0395cdf909d4df66598cebdc96ddfc4418dc
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
release671c2f67171dbced24284331f3133a613d08c366
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/128981#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F128981
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%2F128981
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/128981
Reloadhttps://github.com/python/cpython/pull/128981
Reloadhttps://github.com/python/cpython/pull/128981
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/128981
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/128981
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/128981#issue-comment-box
picnixzhttps://github.com/picnixz
python:mainhttps://github.com/python/cpython/tree/main
picnixz:perf/import/remove-typing-118761https://github.com/picnixz/cpython/tree/perf/import/remove-typing-118761
gh-118761: Improve import time for pstats and zipfile by removing imports to typing https://github.com/python/cpython/pull/128981#top
picnixzhttps://github.com/picnixz
python:mainhttps://github.com/python/cpython/tree/main
picnixz:perf/import/remove-typing-118761https://github.com/picnixz/cpython/tree/perf/import/remove-typing-118761
Conversation 9 https://github.com/python/cpython/pull/128981
Commits 4 https://github.com/python/cpython/pull/128981/commits
Checks 36 https://github.com/python/cpython/pull/128981/checks
Files changed https://github.com/python/cpython/pull/128981/files
Please reload this pagehttps://github.com/python/cpython/pull/128981
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Jan 18, 2025https://github.com/python/cpython/pull/128981#issue-2796902590
Please reload this pagehttps://github.com/python/cpython/pull/128981
@jaracohttps://github.com/jaraco
Improve import time of various stdlib modules #118761https://github.com/python/cpython/issues/118761
Please reload this pagehttps://github.com/python/cpython/pull/128981
picnixzhttps://github.com/picnixz
January 16, 2025 13:11https://github.com/python/cpython/pull/128981#commits-pushed-e9d72b7
https://github.com/picnixz
remove redundant imports to typinghttps://github.com/python/cpython/pull/128981/commits/e9d72b78f6a3a32e76cbcb957520d66eef3a19e7
e9d72b7https://github.com/python/cpython/pull/128981/commits/e9d72b78f6a3a32e76cbcb957520d66eef3a19e7
https://github.com/picnixz
blurbhttps://github.com/python/cpython/pull/128981/commits/6d0b6e0605331956da1b7e7d48dcf682632ab4c0
6d0b6e0https://github.com/python/cpython/pull/128981/commits/6d0b6e0605331956da1b7e7d48dcf682632ab4c0
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jan 18, 2025 https://github.com/python/cpython/pull/128981#ref-issue-2285570381
Improve import time of various stdlib modules #118761 https://github.com/python/cpython/issues/118761
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
Jan 18, 2025https://github.com/python/cpython/pull/128981#event-15985536118
https://github.com/picnixz
Merge branch 'main' into perf/import/remove-typing-118761https://github.com/python/cpython/pull/128981/commits/66e973558f02d9cb864698c14c3a01d5260a1f74
66e9735https://github.com/python/cpython/pull/128981/commits/66e973558f02d9cb864698c14c3a01d5260a1f74
https://github.com/picnixz
picnixzhttps://github.com/picnixz
AA-Turnerhttps://github.com/AA-Turner
hugovkhttps://github.com/hugovk
jaracohttps://github.com/jaraco
January 20, 2025 12:41https://github.com/python/cpython/pull/128981#event-15998353201
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Jan 20, 2025 https://github.com/python/cpython/pull/128981#pullrequestreview-2562556064
View reviewed changes https://github.com/python/cpython/pull/128981/files/7242a99a0a23c8d049cf58c2a65d590c12471747
https://github.com/apps/bedevere-app
bedevere-apphttps://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
Jan 20, 2025https://github.com/python/cpython/pull/128981#event-15999907942
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
Jan 20, 2025 https://github.com/python/cpython/pull/128981#pullrequestreview-2562615477
View reviewed changes https://github.com/python/cpython/pull/128981/files/7242a99a0a23c8d049cf58c2a65d590c12471747
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Jan 20, 2025https://github.com/python/cpython/pull/128981#issuecomment-2602975815
Please reload this pagehttps://github.com/python/cpython/pull/128981
@vstinnerhttps://github.com/vstinner
Please reload this pagehttps://github.com/python/cpython/pull/128981
https://github.com/picnixz
Merge branch 'main' into perf/import/remove-typing-118761https://github.com/python/cpython/pull/128981/commits/7242a99a0a23c8d049cf58c2a65d590c12471747
7242a99https://github.com/python/cpython/pull/128981/commits/7242a99a0a23c8d049cf58c2a65d590c12471747
https://github.com/picnixz
picnixzhttps://github.com/picnixz
January 23, 2025 14:17https://github.com/python/cpython/pull/128981#event-16044605431
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Jan 23, 2025 https://github.com/python/cpython/pull/128981#pullrequestreview-2570067501
View reviewed changes https://github.com/python/cpython/pull/128981/files/7242a99a0a23c8d049cf58c2a65d590c12471747
vstinnerhttps://github.com/vstinner
https://github.com/python/cpython/pull/128981#pullrequestreview-2570067501
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/128981
https://github.com/picnixz
picnixzhttps://github.com/picnixz
a95dca7https://github.com/python/cpython/commit/a95dca7b9891e673e77f868cac05b2068bce8b3a
Jan 23, 2025https://github.com/python/cpython/pull/128981#event-16045091002
Please reload this pagehttps://github.com/python/cpython/pull/128981
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Jan 23, 2025https://github.com/python/cpython/pull/128981#event-16045091791
https://github.com/picnixz
picnixzhttps://github.com/picnixz
January 23, 2025 15:10https://github.com/python/cpython/pull/128981#event-16045415973
https://github.com/jaraco
jaracohttps://github.com/jaraco
Jan 26, 2025https://github.com/python/cpython/pull/128981#issuecomment-2614554724
Please reload this pagehttps://github.com/python/cpython/pull/128981
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Jan 26, 2025https://github.com/python/cpython/pull/128981#issuecomment-2614561057
Please reload this pagehttps://github.com/python/cpython/pull/128981
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
Jan 26, 2025https://github.com/python/cpython/pull/128981#issuecomment-2614563640
@jaracohttps://github.com/jaraco
this threadhttps://discuss.python.org/t/static-type-annotations-in-cpython/65068
no consensushttps://discuss.python.org/t/76766/32
Please reload this pagehttps://github.com/python/cpython/pull/128981
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Jan 27, 2025https://github.com/python/cpython/pull/128981#issuecomment-2614717110
https://discuss.python.org/t/static-type-annotations-in-cpython/65068/9https://discuss.python.org/t/static-type-annotations-in-cpython/65068/9
Please reload this pagehttps://github.com/python/cpython/pull/128981
https://github.com/eli-schwartz
eli-schwartzhttps://github.com/eli-schwartz
Jan 27, 2025https://github.com/python/cpython/pull/128981#issuecomment-2614732538
Please reload this pagehttps://github.com/python/cpython/pull/128981
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Jan 27, 2025https://github.com/python/cpython/pull/128981#issuecomment-2614746808
Please reload this pagehttps://github.com/python/cpython/pull/128981
https://github.com/eli-schwartz
eli-schwartzhttps://github.com/eli-schwartz
Jan 27, 2025https://github.com/python/cpython/pull/128981#issuecomment-2614825775
Please reload this pagehttps://github.com/python/cpython/pull/128981
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%2F128981
https://github.com/vstinner
vstinner https://github.com/vstinner
https://github.com/python/cpython/pull/128981/files/7242a99a0a23c8d049cf58c2a65d590c12471747
https://github.com/hugovk
hugovk https://github.com/hugovk
https://github.com/python/cpython/pull/128981/files/7242a99a0a23c8d049cf58c2a65d590c12471747
https://github.com/AA-Turner
AA-Turner https://github.com/AA-Turner
https://github.com/python/cpython/pull/128981/files/7242a99a0a23c8d049cf58c2a65d590c12471747
https://github.com/jaraco
jaraco https://github.com/jaraco
Please reload this pagehttps://github.com/python/cpython/pull/128981
https://github.com/picnixz
https://github.com/jaraco
https://github.com/vstinner
https://github.com/AA-Turner
https://github.com/gpshead
https://github.com/eli-schwartz
https://github.com/hugovk
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.