René's URL Explorer Experiment


Title: bpo-45020: Freeze some of the modules imported during startup. by ericsnowcurrently · Pull Request #28335 · python/cpython · GitHub

Open Graph Title: bpo-45020: Freeze some of the modules imported during startup. by ericsnowcurrently · Pull Request #28335 · python/cpython

X Title: bpo-45020: Freeze some of the modules imported during startup. by ericsnowcurrently · Pull Request #28335 · python/cpython

Description: Doing this provides significant performance gains for runtime startup (~15% with all the imported modules frozen). We don't yet freeze all the imported modules because there are a few hiccups in t...

Open Graph Description: Doing this provides significant performance gains for runtime startup (~15% with all the imported modules frozen). We don't yet freeze all the imported modules because there are a few hiccups ...

X Description: Doing this provides significant performance gains for runtime startup (~15% with all the imported modules frozen). We don't yet freeze all the imported modules because there are a few hicc...

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

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:5eb7974c-5916-f746-ff02-dd89fcf02231
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9FC6:174FB1:AD2CE6:EBC912:696ABC0B
html-safe-nonce34be6a9a9a6cd3591a080b790db9493e13e74341901bd7bc6aeaa1a391a11960
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkM2OjE3NEZCMTpBRDJDRTY6RUJDOTEyOjY5NkFCQzBCIiwidmlzaXRvcl9pZCI6IjE3MDkzNDY4NDYxMjgzODkxMzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7a185abd863a8516a4ccb903edfd6d7e652d5f90d49b9e2a4a97a840d92a9e60
hovercard-subject-tagpull_request:733827159
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/28335/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/7d6d45005e91c824a19ea15469cef7b3f9fa45fd130bf6f5d23063fbc966c950/python/cpython/pull/28335
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7d6d45005e91c824a19ea15469cef7b3f9fa45fd130bf6f5d23063fbc966c950/python/cpython/pull/28335
og:image:altDoing this provides significant performance gains for runtime startup (~15% with all the imported modules frozen). We don't yet freeze all the imported modules because there are a few hiccups ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameericsnowcurrently
hostnamegithub.com
expected-hostnamegithub.com
None46ce962e0e18113ea447391b6ace8b02d4d2861e57b4fbab3658698f73d8855b
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
release30300f30bb3949de255e84a146706a3bdb5c19c9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/28335#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F28335
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%2F28335
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/28335
Reloadhttps://github.com/python/cpython/pull/28335
Reloadhttps://github.com/python/cpython/pull/28335
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/28335
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/28335
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/28335#issue-comment-box
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
python:mainhttps://github.com/python/cpython/tree/main
ericsnowcurrently:frozen-startup-modules-initialhttps://github.com/ericsnowcurrently/cpython/tree/frozen-startup-modules-initial
bpo-45020: Freeze some of the modules imported during startup. https://github.com/python/cpython/pull/28335#top
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
python:mainhttps://github.com/python/cpython/tree/main
ericsnowcurrently:frozen-startup-modules-initialhttps://github.com/ericsnowcurrently/cpython/tree/frozen-startup-modules-initial
Conversation 6 https://github.com/python/cpython/pull/28335
Commits 8 https://github.com/python/cpython/pull/28335/commits
Checks 0 https://github.com/python/cpython/pull/28335/checks
Files changed https://github.com/python/cpython/pull/28335/files
Please reload this pagehttps://github.com/python/cpython/pull/28335
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Sep 14, 2021https://github.com/python/cpython/pull/28335#issue-996193316
Please reload this pagehttps://github.com/python/cpython/pull/28335
bpo-45186https://bugs.python.org/issue45186
bpo-45188https://bugs.python.org/issue45188
GH-28320https://github.com/python/cpython/pull/28320
#28107https://github.com/python/cpython/pull/28107
bpo-21736https://bugs.python.org/issue21736
https://bugs.python.org/issue45020https://bugs.python.org/issue45020
Please reload this pagehttps://github.com/python/cpython/pull/28335
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Sep 14, 2021https://github.com/python/cpython/pull/28335#event-5300717304
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Sep 14, 2021https://github.com/python/cpython/pull/28335#event-5300717415
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Sep 14, 2021 https://github.com/python/cpython/pull/28335#ref-pullrequest-984434325
bpo-45020: Freeze the modules imported during startup. #28107 https://github.com/python/cpython/pull/28107
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
force-pushedhttps://github.com/python/cpython/compare/b590a7e6c9c9126468301282fa73a36e917aa13f..10c0abc4f18e55daad4603820042a430410d3a4a
b590a7ehttps://github.com/python/cpython/commit/b590a7e6c9c9126468301282fa73a36e917aa13f
10c0abchttps://github.com/python/cpython/commit/10c0abc4f18e55daad4603820042a430410d3a4a
Compare https://github.com/python/cpython/compare/b590a7e6c9c9126468301282fa73a36e917aa13f..10c0abc4f18e55daad4603820042a430410d3a4a
September 14, 2021 23:32https://github.com/python/cpython/pull/28335#event-5302615020
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
September 14, 2021 23:39https://github.com/python/cpython/pull/28335#event-5302631565
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
rhettingerhttps://github.com/rhettinger
terryjreedyhttps://github.com/terryjreedy
code ownershttps://github.com/python/cpython/blob/a65c86889e208dddb26a7ebe7840c24edbcca775/.github/CODEOWNERS#L119
September 14, 2021 23:39https://github.com/python/cpython/pull/28335#event-5302631582
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
gvanrossumhttps://github.com/gvanrossum
rhettingerhttps://github.com/rhettinger
terryjreedyhttps://github.com/terryjreedy
September 14, 2021 23:39https://github.com/python/cpython/pull/28335#event-5302632553
https://github.com/terryjreedy
terryjreedyhttps://github.com/terryjreedy
Sep 15, 2021https://github.com/python/cpython/pull/28335#issuecomment-919654917
Please reload this pagehttps://github.com/python/cpython/pull/28335
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Sep 15, 2021 https://github.com/python/cpython/pull/28335#pullrequestreview-754648588
View reviewed changes https://github.com/python/cpython/pull/28335/files
gvanrossumhttps://github.com/gvanrossum
https://github.com/python/cpython/pull/28335#pullrequestreview-754648588
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/28335
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
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
Sep 15, 2021https://github.com/python/cpython/pull/28335#event-5303332729
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Sep 15, 2021 https://github.com/python/cpython/pull/28335#pullrequestreview-754659398
View reviewed changes https://github.com/python/cpython/pull/28335/files
gvanrossumhttps://github.com/gvanrossum
https://github.com/python/cpython/pull/28335#pullrequestreview-754659398
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/28335
https://github.com/terryjreedy
terryjreedyhttps://github.com/terryjreedy
Sep 15, 2021https://github.com/python/cpython/pull/28335#issuecomment-919746425
Please reload this pagehttps://github.com/python/cpython/pull/28335
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Sep 15, 2021https://github.com/python/cpython/pull/28335#issuecomment-920078622
#28335 (comment)https://github.com/python/cpython/pull/28335#issuecomment-919746425
https://github.com/notifications/unsubscribe-auth/AAWCWMVSIFS5MVWECSLMILDUCA6P7ANCNFSM5EAQFRXQhttps://github.com/notifications/unsubscribe-auth/AAWCWMVSIFS5MVWECSLMILDUCA6P7ANCNFSM5EAQFRXQ
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithubhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
Please reload this pagehttps://github.com/python/cpython/pull/28335
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Sep 15, 2021https://github.com/python/cpython/pull/28335#issuecomment-920117319
@terryjreedyhttps://github.com/terryjreedy
gh-28344https://github.com/python/cpython/pull/28344
Please reload this pagehttps://github.com/python/cpython/pull/28335
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
September 15, 2021 09:30https://github.com/python/cpython/pull/28335#commits-pushed-c0fe716
https://github.com/ericsnowcurrently
Freeze the stdlib modules loaded during startup.https://github.com/python/cpython/pull/28335/commits/c0fe7163a04011daf65f872d81c99498fa70b032
c0fe716https://github.com/python/cpython/pull/28335/commits/c0fe7163a04011daf65f872d81c99498fa70b032
https://github.com/ericsnowcurrently
Undo the changes to tests that were using the os module.https://github.com/python/cpython/pull/28335/commits/ba13d76af2eb48440b55e7900b8e253646511451
ba13d76https://github.com/python/cpython/pull/28335/commits/ba13d76af2eb48440b55e7900b8e253646511451
https://github.com/ericsnowcurrently
Fix test_4_daemon_threads.https://github.com/python/cpython/pull/28335/commits/1648f7629d213418fc564e0fc7f9e4e3bf8ce5f8
1648f76https://github.com/python/cpython/pull/28335/commits/1648f7629d213418fc564e0fc7f9e4e3bf8ce5f8
https://github.com/ericsnowcurrently
For now, do not freeze encodings.*.https://github.com/python/cpython/pull/28335/commits/4d45ca7cb3e5017faf2e43000a002e9db1fdb12a
4d45ca7https://github.com/python/cpython/pull/28335/commits/4d45ca7cb3e5017faf2e43000a002e9db1fdb12a
https://github.com/ericsnowcurrently
For now, do not freeze os, site, or codecs.https://github.com/python/cpython/pull/28335/commits/f3828774eaa3097f9f8e9e38038151b9432bd1b6
f382877https://github.com/python/cpython/pull/28335/commits/f3828774eaa3097f9f8e9e38038151b9432bd1b6
https://github.com/ericsnowcurrently
Always freeze both posixpath and ntpath.https://github.com/python/cpython/pull/28335/commits/d0a8764a22a27b995acb683569ca32e8a349af98
d0a8764https://github.com/python/cpython/pull/28335/commits/d0a8764a22a27b995acb683569ca32e8a349af98
https://github.com/ericsnowcurrently
Add a NEWS entry.https://github.com/python/cpython/pull/28335/commits/684a7dea17842bf7bf6ec4233649d8f8619ec7c8
684a7dehttps://github.com/python/cpython/pull/28335/commits/684a7dea17842bf7bf6ec4233649d8f8619ec7c8
https://github.com/ericsnowcurrently
Put the full _freeze_module command on a single line (for less noise).https://github.com/python/cpython/pull/28335/commits/d58881668cb960597b93f35e2f9061c0a3de2e91
d588816https://github.com/python/cpython/pull/28335/commits/d58881668cb960597b93f35e2f9061c0a3de2e91
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
force-pushedhttps://github.com/python/cpython/compare/10c0abc4f18e55daad4603820042a430410d3a4a..d58881668cb960597b93f35e2f9061c0a3de2e91
10c0abchttps://github.com/python/cpython/commit/10c0abc4f18e55daad4603820042a430410d3a4a
d588816https://github.com/python/cpython/commit/d58881668cb960597b93f35e2f9061c0a3de2e91
Compare https://github.com/python/cpython/compare/10c0abc4f18e55daad4603820042a430410d3a4a..d58881668cb960597b93f35e2f9061c0a3de2e91
September 15, 2021 15:39https://github.com/python/cpython/pull/28335#event-5306879327
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Sep 15, 2021 https://github.com/python/cpython/pull/28335#ref-issue-942394649
Faster startup -- Experiment B -- streamline and tweak faster-cpython/ideas#65 https://github.com/faster-cpython/ideas/issues/65
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
cbeb819https://github.com/python/cpython/commit/cbeb81971057d6c382f45ecce92df2b204d4106a
Sep 15, 2021https://github.com/python/cpython/pull/28335#event-5307125271
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Sep 15, 2021https://github.com/python/cpython/pull/28335#event-5307125563
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
September 15, 2021 16:22https://github.com/python/cpython/pull/28335#event-5307142266
https://github.com/malemburg
malemburghttps://github.com/malemburg
May 21, 2022 https://github.com/python/cpython/pull/28335#ref-issue-1198922164
Add __file__ attribute to frozen modules #65935 https://github.com/python/cpython/issues/65935
https://github.com/krassowski
krassowskihttps://github.com/krassowski
Feb 14, 2024 https://github.com/python/cpython/pull/28335#ref-pullrequest-2135248006
Disable frozen modules by default, add a toggle ipython/ipykernel#1213 https://github.com/ipython/ipykernel/pull/1213
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%2F28335
https://github.com/gvanrossum
gvanrossum https://github.com/gvanrossum
https://github.com/python/cpython/pull/28335/files/10c0abc4f18e55daad4603820042a430410d3a4a
Please reload this pagehttps://github.com/python/cpython/pull/28335
https://github.com/ericsnowcurrently
https://github.com/terryjreedy
https://github.com/gvanrossum
https://github.com/the-knights-who-say-ni
https://github.com/bedevere-bot
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.