Nick Coghlan <ncogh...@gmail.com> added the comment:

Something else this would need is a different name that better distinguishes it 
from the existing frozen modules, which freeze the bytecode rather than the 
resulting module state. (That existing approach avoids the stat overhead, but 
still incurs the module level bytecode execution overhead)

My suggestion would be to use the terms "preexec builtin module" and "preexec 
extension module", as the concept is similar to precompiled bytecode, just 
taken a step further: actually executing the module in advance and caching the 
result, not just compiling it.

This means the preexecuted module can't have any module level conditional logic 
that depends on runtime state if the resulting binary is going to remain 
portable across different environments, but there'd be a lot of standard 
library modules that could satisfy that constraint.

----------
nosy: +ncoghlan

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34690>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to