René's URL Explorer Experiment


Title: gh-132952: Import _io instead of io at startup by JelleZijlstra · Pull Request #132957 · python/cpython · GitHub

Open Graph Title: gh-132952: Import _io instead of io at startup by JelleZijlstra · Pull Request #132957 · python/cpython

X Title: gh-132952: Import _io instead of io at startup by JelleZijlstra · Pull Request #132957 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Issue: #127648 introduced a ~12% performance regression in python_startup_no_site benchmark #132952

X Description: Issue: #127648 introduced a ~12% performance regression in python_startup_no_site benchmark #132952

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

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:4bb7bd68-db05-8d16-8a57-b94efc78ea84
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC7CC:90996:FC89B4:16943A6:6A4F5A72
html-safe-nonce31b69b141d807cd3a05b40acd15e5c1125397cebf2ad2e7a120285836eef275c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0NDOjkwOTk2OkZDODlCNDoxNjk0M0E2OjZBNEY1QTcyIiwidmlzaXRvcl9pZCI6Ijc1MTgwMzU4NTYyMTQ0MTU5ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac05f560a1f3081ab132cd1885595fb405c6f166201a0f6bc77d01c288321306aa
hovercard-subject-tagpull_request:2481939965
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/132957/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/212be9f4afda89dd67bb22b918f259d36d68ca6a1eb813089b379279bc58a47b/python/cpython/pull/132957
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/212be9f4afda89dd67bb22b918f259d36d68ca6a1eb813089b379279bc58a47b/python/cpython/pull/132957
og:image:altIssue: #127648 introduced a ~12% performance regression in python_startup_no_site benchmark #132952
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJelleZijlstra
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-cache
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
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/132957#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F132957
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%2F132957
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/132957
Reloadhttps://github.com/python/cpython/pull/132957
Reloadhttps://github.com/python/cpython/pull/132957
Please reload this pagehttps://github.com/python/cpython/pull/132957
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/132957
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k 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
JelleZijlstrahttps://github.com/JelleZijlstra
python:mainhttps://github.com/python/cpython/tree/main
JelleZijlstra:sunder-iohttps://github.com/JelleZijlstra/cpython/tree/sunder-io
Conversationhttps://github.com/python/cpython/pull/132957
Commits6 (6)https://github.com/python/cpython/pull/132957/commits
Checkshttps://github.com/python/cpython/pull/132957/checks
Files changedhttps://github.com/python/cpython/pull/132957/files
gh-132952: Import _io instead of io at startuphttps://github.com/python/cpython/pull/132957#top
JelleZijlstrahttps://github.com/JelleZijlstra
python:mainhttps://github.com/python/cpython/tree/main
JelleZijlstra:sunder-iohttps://github.com/JelleZijlstra/cpython/tree/sunder-io
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Apr 25, 2025https://github.com/python/cpython/pull/132957#issue-3020448174
Please reload this pagehttps://github.com/python/cpython/pull/132957
#127648 introduced a ~12% performance regression in python_startup_no_site benchmark #132952https://github.com/python/cpython/issues/132952
Please reload this pagehttps://github.com/python/cpython/pull/132957
https://github.com/JelleZijlstra
pythongh-132952https://github.com/python/cpython/issues/132952
: Import _io instead of io at startuphttps://github.com/python/cpython/pull/132957/commits/dac50cc5fc1e59331856e4c667d05bfb028fdcd9
dac50cchttps://github.com/python/cpython/pull/132957/commits/dac50cc5fc1e59331856e4c667d05bfb028fdcd9
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Apr 25, 2025 https://github.com/python/cpython/pull/132957#ref-issue-3020385869
#127648 introduced a ~12% performance regression in python_startup_no_site benchmark #132952 https://github.com/python/cpython/issues/132952
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Apr 25, 2025https://github.com/python/cpython/pull/132957#issuecomment-2830825283
#132956https://github.com/python/cpython/pull/132956
Please reload this pagehttps://github.com/python/cpython/pull/132957
https://github.com/mdboom
mdboomhttps://github.com/mdboom
Apr 25, 2025https://github.com/python/cpython/pull/132957#issuecomment-2831451298
#132956https://github.com/python/cpython/pull/132956
Please reload this pagehttps://github.com/python/cpython/pull/132957
https://github.com/mdboom
mdboomhttps://github.com/mdboom
Apr 26, 2025https://github.com/python/cpython/pull/132957#issuecomment-2832124586
https://github.com/faster-cpython/benchmarking-public/blob/main/results/bm-20250425-3.14.0a7%2B-dac50cc/bm-20250425-linux-x86_64-JelleZijlstra-sunder_io-3.14.0a7%2B-dac50cc-vs-base.svghttps://github.com/faster-cpython/benchmarking-public/blob/main/results/bm-20250425-3.14.0a7%2B-dac50cc/bm-20250425-linux-x86_64-JelleZijlstra-sunder_io-3.14.0a7%2B-dac50cc-vs-base.svg
#132956https://github.com/python/cpython/pull/132956
Please reload this pagehttps://github.com/python/cpython/pull/132957
JelleZijlstrahttps://github.com/JelleZijlstra
April 26, 2025 08:48https://github.com/python/cpython/pull/132957#commits-pushed-e3432b7
https://github.com/JelleZijlstra
Also lazy-import in sitehttps://github.com/python/cpython/pull/132957/commits/e3432b72498ab1cad5007d5bb3a2f298c557bc8a
e3432b7https://github.com/python/cpython/pull/132957/commits/e3432b72498ab1cad5007d5bb3a2f298c557bc8a
https://github.com/JelleZijlstra
blurbhttps://github.com/python/cpython/pull/132957/commits/ebe8890440dae062081b88b6c31995f48647971c
ebe8890https://github.com/python/cpython/pull/132957/commits/ebe8890440dae062081b88b6c31995f48647971c
https://github.com/JelleZijlstra
Set the __module__ of UnsupportedOperation even if io is not importedhttps://github.com/python/cpython/pull/132957/commits/c3cfa671f1ff319e01e6bf07d18ac419ff846aa4
c3cfa67https://github.com/python/cpython/pull/132957/commits/c3cfa671f1ff319e01e6bf07d18ac419ff846aa4
https://github.com/JelleZijlstra
add testhttps://github.com/python/cpython/pull/132957/commits/6c40c3a6d928fc3534d26be1d0cf000021346e83
6c40c3ahttps://github.com/python/cpython/pull/132957/commits/6c40c3a6d928fc3534d26be1d0cf000021346e83
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
April 26, 2025 16:06https://github.com/python/cpython/pull/132957#event-17417315308
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
FFY00https://github.com/FFY00
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
code ownershttps://github.com/python/cpython/blob/632524a5cbdd3e999992d0e9e68fe8b464ed16ec/.github/CODEOWNERS#L101
April 26, 2025 16:06https://github.com/python/cpython/pull/132957#event-17417315338
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
Apr 26, 2025https://github.com/python/cpython/pull/132957#event-17417315419
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Apr 26, 2025https://github.com/python/cpython/pull/132957#issuecomment-2832375301
Please reload this pagehttps://github.com/python/cpython/pull/132957
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Apr 26, 2025 https://github.com/python/cpython/pull/132957#ref-pullrequest-3020432672
gh-132952: Improve Python startup time by ~12% #132956 https://github.com/python/cpython/pull/132956
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Apr 27, 2025 https://github.com/python/cpython/pull/132957#pullrequestreview-2797761108
View reviewed changes https://github.com/python/cpython/pull/132957/files/6c40c3a6d928fc3534d26be1d0cf000021346e83
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
Apr 27, 2025https://github.com/python/cpython/pull/132957#event-17425159146
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Apr 27, 2025 https://github.com/python/cpython/pull/132957#pullrequestreview-2797761536
View reviewed changes https://github.com/python/cpython/pull/132957/files/6c40c3a6d928fc3534d26be1d0cf000021346e83
Misc/NEWS.d/next/Core_and_Builtins/2025-04-26-08-49-05.gh-issue-132952.ifvP10.rsthttps://github.com/python/cpython/pull/132957/files/6c40c3a6d928fc3534d26be1d0cf000021346e83#diff-ef9d972999ac8813b2e91b2ed1e146fb90385fd572e56054eac25f70d32b7078
gpsheadhttps://github.com/gpshead
Apr 27, 2025https://github.com/python/cpython/pull/132957#discussion_r2062741740
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/132957
mdboomhttps://github.com/mdboom
Apr 28, 2025https://github.com/python/cpython/pull/132957#discussion_r2063660517
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/132957
JelleZijlstrahttps://github.com/JelleZijlstra
Apr 28, 2025https://github.com/python/cpython/pull/132957#discussion_r2063664633
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/132957
https://github.com/mdboom
mdboomhttps://github.com/mdboom
Apr 28, 2025 https://github.com/python/cpython/pull/132957#pullrequestreview-2799306258
View reviewed changes https://github.com/python/cpython/pull/132957/files/6c40c3a6d928fc3534d26be1d0cf000021346e83
mdboomhttps://github.com/mdboom
https://github.com/python/cpython/pull/132957#pullrequestreview-2799306258
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/132957
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
Apr 28, 2025https://github.com/python/cpython/pull/132957#event-17434559311
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Apr 28, 2025https://github.com/python/cpython/pull/132957#issuecomment-2835249846
Please reload this pagehttps://github.com/python/cpython/pull/132957
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting changes https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22
Apr 28, 2025https://github.com/python/cpython/pull/132957#event-17434559501
https://github.com/JelleZijlstra
Drop 19% claimhttps://github.com/python/cpython/pull/132957/commits/71bfe4d78fbe806846f0c63d3eee4aaafb9dc4cc
71bfe4dhttps://github.com/python/cpython/pull/132957/commits/71bfe4d78fbe806846f0c63d3eee4aaafb9dc4cc
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Apr 28, 2025https://github.com/python/cpython/pull/132957#issuecomment-2835265382
Please reload this pagehttps://github.com/python/cpython/pull/132957
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting change review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20change%20review%22
awaiting changes https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22
Apr 28, 2025https://github.com/python/cpython/pull/132957#event-17434652487
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Apr 28, 2025https://github.com/python/cpython/pull/132957#issuecomment-2835265671
@mdboomhttps://github.com/mdboom
@gpsheadhttps://github.com/gpshead
Please reload this pagehttps://github.com/python/cpython/pull/132957
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
gpsheadhttps://github.com/gpshead
mdboomhttps://github.com/mdboom
April 28, 2025 13:33https://github.com/python/cpython/pull/132957#event-17434653535
https://github.com/mdboom
mdboomhttps://github.com/mdboom
Apr 28, 2025 https://github.com/python/cpython/pull/132957#pullrequestreview-2799329336
View reviewed changes https://github.com/python/cpython/pull/132957/files/71bfe4d78fbe806846f0c63d3eee4aaafb9dc4cc
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 change review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20change%20review%22
Apr 28, 2025https://github.com/python/cpython/pull/132957#event-17434688959
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
58567cchttps://github.com/python/cpython/commit/58567cc18c5b048e08307b5ba18a9934a395ca42
Apr 28, 2025https://github.com/python/cpython/pull/132957#event-17437225213
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
Apr 28, 2025https://github.com/python/cpython/pull/132957#event-17437228156
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
April 28, 2025 15:39https://github.com/python/cpython/pull/132957#event-17437230800
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
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%2F132957
https://github.com/mdboom
mdboom https://github.com/mdboom
https://github.com/python/cpython/pull/132957/files/71bfe4d78fbe806846f0c63d3eee4aaafb9dc4cc
https://github.com/FFY00
FFY00 https://github.com/FFY00
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/gpshead
gpshead https://github.com/gpshead
Please reload this pagehttps://github.com/python/cpython/pull/132957
https://github.com/JelleZijlstra
https://github.com/mdboom
https://github.com/gpshead
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.