4 ms·
Recent versions of Python (3.8+) have introduced a SharedMemory class for sharing memory between different processes (see https://docs.python.org/3/library/mult
by szubie 5y ago
Recent versions of Python (3.8+) have introduced a SharedMemory class for sharing memory between different processes (see https://docs.python.org/3/library/multiprocessing.shared_memory.html https://docs.python.org/3/library/multiprocessing.shared_mem...).
The implementation may still be a bit buggy though, so use with caution! https://bugs.python.org/issue38119 https://bugs.python.org/issue38119
- ZuLuuuuuu 5y agoThank you, I'll definitely check it out!
- anentropic 5y agoThere are also some libraries built on top of it that might be useful https://github.com/dillonalaird/shared_numpy https://github.com/dillonalaird/shared_numpy