Title: Remove deep-freezing of code objects and modules. · Issue #108716 · python/cpython · GitHub
Open Graph Title: Remove deep-freezing of code objects and modules. · Issue #108716 · python/cpython
X Title: Remove deep-freezing of code objects and modules. · Issue #108716 · python/cpython
Description: Deep-freezing, as implemented has a number of problems: It is slow to build It does not fit into the normal build system, make will not recreate deep-frozen modules Deep-freezing only makes sense if the objects are immutable, but code ob...
Open Graph Description: Deep-freezing, as implemented has a number of problems: It is slow to build It does not fit into the normal build system, make will not recreate deep-frozen modules Deep-freezing only makes sense i...
X Description: Deep-freezing, as implemented has a number of problems: It is slow to build It does not fit into the normal build system, make will not recreate deep-frozen modules Deep-freezing only makes sense i...
Opengraph URL: https://github.com/python/cpython/issues/108716
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remove deep-freezing of code objects and modules.","articleBody":"Deep-freezing, as implemented has a number of problems:\r\n* It is slow to build\r\n* It does not fit into the normal build system, `make` will not recreate deep-frozen modules\r\n* Deep-freezing only makes sense if the objects are immutable, but code objects are not (at the VM level)\r\n* It is [a bit slower](https://github.com/faster-cpython/benchmarking-public/tree/main/results/bm-20230827-3.13.0a0-1ad9bed)\r\n* It gets in the way of other optimizations, notable faster loading from `pyc` files.\r\n\r\nSo let's remove it.\r\n\r\nBut let's keep the ability to deep-freeze objects.\r\nThe ability to deep-freeze objects into the executable is valuable, we already do it with strings, and deep-freezing whole immutable object graphs like the `sys` and `builtin` modules could improve start up considerably.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-108722\n* gh-110078\n* gh-116919\n* gh-117141\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/markshannon","@type":"Person","name":"markshannon"},"datePublished":"2023-08-31T12:45:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/108716/cpython/issues/108716"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bf784716-e4db-ac83-2dc4-c6f7f38ffadf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 900C:37CCD2:21566A2:2C4C457:696B0E61 |
| html-safe-nonce | 323eb6722cd916507c247b997220d04e38807c4881b7dea87b1b4344e2c374ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDBDOjM3Q0NEMjoyMTU2NkEyOjJDNEM0NTc6Njk2QjBFNjEiLCJ2aXNpdG9yX2lkIjoiNTEwMzIxNjI0OTY4MDA3MjY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b7688a55b6f939088e49fce6bb3a3fa003dd8d2e3f8edae19cd4b6f43aff0fc7 |
| hovercard-subject-tag | issue:1875458868 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/108716/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3810919a48ae2491973cdf42291c2b98bc1883d85265c46ec5eef522e547e718/python/cpython/issues/108716 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3810919a48ae2491973cdf42291c2b98bc1883d85265c46ec5eef522e547e718/python/cpython/issues/108716 |
| og:image:alt | Deep-freezing, as implemented has a number of problems: It is slow to build It does not fit into the normal build system, make will not recreate deep-frozen modules Deep-freezing only makes sense i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | markshannon |
| 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 |
| 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