[New-bugs-announce] [issue45020] Freeze all modules imported during startup.

Eric Snow report at bugs.python.org
Thu Aug 26 15:23:58 EDT 2021


New submission from Eric Snow <ericsnowcurrently at gmail.com>:

Currently we freeze the 3 main import-related modules into the python binary (along with one test module).  This allows us to bootstrap the import machinery from Python modules.  It also means we get better performance importing those modules.

If we freeze modules that are likely to be used during execution then we get even better startup times.  I'll be putting up a PR that does so, freezing all the modules that are imported during startup.  This could also be done for any stdlib modules that are commonly imported.

(also see #45019 and https://github.com/faster-cpython/ideas/issues/82)

----------
assignee: eric.snow
components: Build
messages: 400370
nosy: brett.cannon, eric.snow, gvanrossum, nedbat
priority: normal
severity: normal
stage: needs patch
status: open
title: Freeze all modules imported during startup.
type: enhancement
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45020>
_______________________________________


More information about the New-bugs-announce mailing list