On 28/03/2026 05.59, DFS wrote:
[...]
Faster startup is nice, but lazy importing doesn't reduce total runtime of the program, right?

Different objective, anyway.

It *might* reduce total runtime, it depends
on the code structure.

If the code is multi-threaded, likely having
the imports *per thread* is better than having
them globally.

YMMV

bye,

--

piergiorgio
--
https://mail.python.org/mailman3//lists/python-list.python.org

Reply via email to