3 ms·
They’re actively working on a neat angle at solving this problem via much cleaner IPC through spawning sub interpreters https://www.python.org/dev/peps/pep-055
by no_wizard 7y ago
They’re actively working on a neat angle at solving this problem via much cleaner IPC through spawning sub interpreters
https://www.python.org/dev/peps/pep-0554/ https://www.python.org/dev/peps/pep-0554/
This just may be the way forward in the Python ecosystem
- blattimwind 7y agoSubinterpreters share a common GIL. Also subinterpreters don't share Python objects, which means among other things that all modules are imported separately in each SI, which increases startup time, memory usage and reduce cache effectiveness. It's a band-aid. If you want to run Python code in parallel, without large overhead, then CPython is simply not your environment to do so, and Python is not a good choice overall in that kind of endeavour.