Issue 45696: "Deep-freeze": skip the marshal step by generating C code - Python tracker

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: christian.heimes, eric.snow, gvanrossum
Priority: normal Keywords: patch

Created on 2021-11-03 00:16 by gvanrossum, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 29118 merged gvanrossum, 2021-11-03 00:17
PR 29522 closed christian.heimes, 2021-11-11 13:02
Messages (3)
msg405570 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2021-11-03 00:16
See https://github.com/faster-cpython/ideas/issues/84

This appears to improve startup time by another 10% or more compared to main.
msg406131 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2021-11-10 19:57
After PR 29118 is merged we get the benefits on UNIXy systems. We have several TODOs left then:

- (Definitely:) Generate Windows build files

- (Probably:) Find a way to avoid having to regenerate everything whenever any source file changes (any source file -> _bootstrap_python -> all generated files)

- (Maybe:) Consider putting all generated code together in one file, for more savings (and build simplification)
msg406142 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2021-11-11 02:02
New changeset 1cbaa505d007e11c4a1f0d2073d72b6c02c7147c by Guido van Rossum in branch 'main':
bpo-45696: Deep-freeze selected modules (GH-29118)
https://github.com/python/cpython/commit/1cbaa505d007e11c4a1f0d2073d72b6c02c7147c