Issue 46608: Exclude marshalled-frozen data if deep-freezing to save 300 KB space
Created on 2022-02-02 09:08 by kumaraditya, last changed 2022-04-11 14:59 by admin. This issue is now closed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 31074 | merged | kumaraditya, 2022-02-02 09:08 | |
| PR 31131 | merged | kumaraditya, 2022-02-04 18:24 | |
| Messages (4) | |||
|---|---|---|---|
| msg412346 - (view) | Author: Kumar Aditya (kumaraditya) * ![]() |
Date: 2022-02-02 09:08 | |
This reduces the size of the data segment by 300 KB of the executable because if the modules are deep-frozen then the marshalled frozen data just wastes space. This was inspired by comment by @gvanrossum in #29118 (comment). Note: There is a new option `--deepfreeze-only` in freeze_modules.py to change this behavior, it is on be default to save disk space. # du -s ./python before 27892 ./python # du -s ./python after 27524 ./python |
|||
| msg412521 - (view) | Author: miss-islington (miss-islington) | Date: 2022-02-04 17:57 | |
New changeset bf95ff91f2c1fc5a57190491f9ccdc63458b089e by Kumar Aditya in branch 'main': bpo-46608: exclude marshalled-frozen data if deep-freezing to save 300 KB space (GH-31074) https://github.com/python/cpython/commit/bf95ff91f2c1fc5a57190491f9ccdc63458b089e |
|||
| msg412578 - (view) | Author: Guido van Rossum (gvanrossum) * ![]() |
Date: 2022-02-05 15:59 | |
New changeset 9d4161a60ca8b470148ffd6c73e3110a0aa6d66f by Kumar Aditya in branch 'main': bpo-46608: Fix argument parsing in freeze_modules.py (GH-31131) https://github.com/python/cpython/commit/9d4161a60ca8b470148ffd6c73e3110a0aa6d66f |
|||
| msg414122 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2022-02-26 23:27 | |
https://docs.python.org/dev/whatsnew/3.11.html#c-api-changes documents the addition of the "is_package" member to the _frozen structure, but it doesn't mention the new "get_code" member. Can it be also documented? |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:55 | admin | set | github: 90766 |
| 2022-02-26 23:27:26 | vstinner | set | nosy:
+ vstinner messages: + msg414122 |
| 2022-02-10 14:11:41 | kumaraditya | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2022-02-05 15:59:57 | gvanrossum | set | messages: + msg412578 |
| 2022-02-04 18:24:42 | kumaraditya | set | pull_requests: + pull_request29310 |
| 2022-02-04 17:57:12 | miss-islington | set | nosy:
+ miss-islington messages: + msg412521 |
| 2022-02-02 16:40:06 | gvanrossum | set | nosy:
+ eric.snow |
| 2022-02-02 09:08:50 | kumaraditya | set | keywords:
+ patch stage: patch review pull_requests: + pull_request29259 |
| 2022-02-02 09:08:27 | kumaraditya | create | |

