3 ms·
Good point, but shared memory via mmap isn't very Pythonic since you have to manage the shared memory manually, you can't allocate Python objects on the shared
by seunosewa 14y ago
Good point, but shared memory via mmap isn't very Pythonic since you have to manage the shared memory manually, you can't allocate Python objects on the shared region, etc.
- freyrs3 14y agoYes, but if you're doing HPC idiomatic Python comes second to raw performance.
- d0mine 14y agoYou don't need to use mmap explicitly. multiprocessing.Array and numpy arrays can share the same memory that can be used from different processes e.g., http://stackoverflow.com/a/9849971 http://stackoverflow.com/a/9849971