-
- Downloads
bpo-46608: exclude marshalled-frozen data if deep-freezing to save 300 KB space (GH-31074)
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 https://github.com/python/cpython/pull/29118#issuecomment-958521863. 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. ```console # du -s ./python before 27892 ./python # du -s ./python after 27524 ./python ``` Automerge-Triggered-By: GH:ericsnowcurrently
Showing
- Doc/c-api/import.rst 4 additions, 0 deletionsDoc/c-api/import.rst
- Doc/whatsnew/3.11.rst 5 additions, 0 deletionsDoc/whatsnew/3.11.rst
- Include/cpython/import.h 1 addition, 0 deletionsInclude/cpython/import.h
- Lib/ctypes/test/test_values.py 6 additions, 4 deletionsLib/ctypes/test/test_values.py
- Misc/NEWS.d/next/Build/2022-02-02-11-26-46.bpo-46608.cXH9po.rst 2 additions, 0 deletions...EWS.d/next/Build/2022-02-02-11-26-46.bpo-46608.cXH9po.rst
- Python/frozen.c 29 additions, 54 deletionsPython/frozen.c
- Python/import.c 12 additions, 4 deletionsPython/import.c
- Tools/freeze/makefreeze.py 6 additions, 6 deletionsTools/freeze/makefreeze.py
- Tools/scripts/freeze_modules.py 22 additions, 16 deletionsTools/scripts/freeze_modules.py
Loading
Please register or sign in to comment