Title: bpo-45020: Freeze the modules imported during startup. by ericsnowcurrently · Pull Request #28107 · python/cpython · GitHub
Open Graph Title: bpo-45020: Freeze the modules imported during startup. by ericsnowcurrently · Pull Request #28107 · python/cpython
X Title: bpo-45020: Freeze the modules imported during startup. by ericsnowcurrently · Pull Request #28107 · python/cpython
Description: [I'm going to split this PR up.] Doing this provides some significant performance gains for runtime startup. This change also adds a command-line flag (-X frozen_modules=[on|off]) that allows users to opt out of (or into) using frozen modules. When run in a development environment it defaults to opting out, to avoid contributors wasting time trying to figure out why their changes aren't getting used. Note that I plan on updating the tests for the frozen modules so they run against the frozen and unfrozen modules, like we do with importlib. We'll also be looking at making frozen modules more like source modules in a separate PR. There are only a handful of things left to do here before this could be merged: get the "check_generated_files" job passing deal with frozen modules on the WIndows builds sort out PyConfig.stdlib_dir on Windows ensure default "-X frozen_modules=on" for PGO builds problem in test_4_daemon_threads in test_threading (timing out with "-X frozen_modules=on") drop Python/frozen_modules/MANIFEST? https://bugs.python.org/issue45020
Open Graph Description: [I'm going to split this PR up.] Doing this provides some significant performance gains for runtime startup. This change also adds a command-line flag (-X frozen_modules=[on|off]) that allows ...
X Description: [I'm going to split this PR up.] Doing this provides some significant performance gains for runtime startup. This change also adds a command-line flag (-X frozen_modules=[on|off]) that all...
Opengraph URL: https://github.com/python/cpython/pull/28107
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:a609d848-4ccc-9abf-29e5-c387081f0e64 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | BECE:10503:19C413C:217C5CE:696B2EEF |
| html-safe-nonce | a4980cac4ced1edb6185e8345cdce9358a3bbee60624baa04e707bcc9b7d4894 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUNFOjEwNTAzOjE5QzQxM0M6MjE3QzVDRTo2OTZCMkVFRiIsInZpc2l0b3JfaWQiOiIxMTIzNDMyMzEyNDYwNzUwNTc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2f9e21e5fbe087a34b72fe240c2ede019e4a941e72a5bbd9cd5f19b613689ef7 |
| hovercard-subject-tag | pull_request:723869422 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/28107/checks |
| twitter:image | https://avatars.githubusercontent.com/u/1152074?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1152074?s=400&v=4 |
| og:image:alt | [I'm going to split this PR up.] Doing this provides some significant performance gains for runtime startup. This change also adds a command-line flag (-X frozen_modules=[on|off]) that allows ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width