On 06/11/2019 16:02, Spencer Du wrote:
Why is importing modules in parallel bad?
To put it as simply as I can:
1. The import mechanism is complicated, even the bits that are
user-visible. Fiddling with it has a high chance of going wrong.
2. Multi-threading is less complicated than import, but still requires a
lot of careful thought. For example you've asserted that the modules
you want to import simultaneously, but you also need to consider the
import mechanism itself.
Put 1 and 2 together, and multi-threaded import sounds like a nightmare.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list