12 Jun
2020
12 Jun
'20
8:47 p.m.
On Fri, Jun 12, 2020 at 2:49 AM Mark Shannon wrote:
The overhead largely comes from what you do with the process. The additional cost of starting a new interpreter is the same regardless of whether it is in the same process or not.
FWIW, there's more to it than that: * there is some overhead to starting the runtime and main interpreter that does not apply to additional in-process interpreters * I don't see why we shouldn't be able to come up with a strategy for interpreter startup that does not involve copying or sharing a lot of interpreter state, thus reducing startup time and memory consumption * I'm guessing that re-importing builtin/extension modules is faster than importing then new in a separate process -eric