[Python-Dev] Lazy initialization of module global state
Nick Coghlan
ncoghlan at gmail.com
Fri Sep 8 13:07:10 EDT 2017
On 8 September 2017 at 08:50, Neil Schemenauer <neil at python.ca> wrote:
> This should be pretty safe to do and should give a significant
> benefit in startup time and memory usage.
And given the extended pyc header being proposed in PEP 552, we'd be
able to include flags in the header to indicate that the pyc file was
compiled with this alternative behaviour. While that wouldn't be
needed for import, it would be useful for anyone trying to confirm
that the pyc file actually matches the corresponding source file.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-Dev
mailing list