bpo-45696: Deep-freeze by gvanrossum · Pull Request #29118 · python/cpython

and others added 27 commits

August 30, 2021 17:32
Not generating Makefile yet
Still not generating Makefile

@gvanrossum

@gvanrossum

@gvanrossum

remykarem pushed a commit to remykarem/cpython that referenced this pull request

Dec 7, 2021
This gains 10% or more in startup time for `python -c pass` on UNIX-ish systems.

The Makefile.pre.in generating code builds on Eric's work for bpo-45020, but the .c file generator is new.

Windows version TBD.

remykarem pushed a commit to remykarem/cpython that referenced this pull request

Jan 30, 2022
This gains 10% or more in startup time for `python -c pass` on UNIX-ish systems.

The Makefile.pre.in generating code builds on Eric's work for bpo-45020, but the .c file generator is new.

Windows version TBD.

miss-islington pushed a commit that referenced this pull request

Feb 4, 2022
…0 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 #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.
```console 
# du -s ./python before
27892   ./python
# du -s ./python after
27524   ./python
```

Automerge-Triggered-By: GH:ericsnowcurrently