4 ms·
Shouldn't be slow if shared memory is used. https://docs.python.org/3/library/multiprocessing.shared_memory.html https://docs.python.org/3/library/multiprocess
by rpedela 6y ago
Shouldn't be slow if shared memory is used.
https://docs.python.org/3/library/multiprocessing.shared_memory.html https://docs.python.org/3/library/multiprocessing.shared_mem...
- bno1 6y agoFirst time I've seen this, looks like its brand new (python 3.8). The problem now is that you have to serialize/deserialize your data and modify your numpy/pytorch code to use the shared memory. It's an improvement in performance, true, but not as fast and easy as just sharing variables between threads.
- deleted 6y ago[deleted]
- deleted 6y ago[deleted]