4 ms·
At this point, I've given up hope that CPython will ever lose the GIL. The best we can hope for is having multiple interpreters[0], each with their own GIL[1].
by theandrewbailey 4y ago
At this point, I've given up hope that CPython will ever lose the GIL.
The best we can hope for is having multiple interpreters[0], each with their own GIL[1].
[0] https://peps.python.org/pep-0554/ https://peps.python.org/pep-0554/
[1] https://github.com/ericsnowcurrently/multi-core-python/issues/79 https://github.com/ericsnowcurrently/multi-core-python/issue...
- Spivak 4y agoFor absolutely critical hot path code this obviously won’t be enough but subinterpreters with memory arenas is a really solid model for safe concurrency and faster than multiprocess IPC.