Diogo Flores <dxflo...@outlook.com> added the comment:
I have tried a different approach using https://gitlab.com/tenzing/shared-array and I got it to perform well on Linux. Basically, the code above places all numpy arrays in /dev/shm which allows you to access and modify them from any number of processes without creating any copies; for deleting is equally simple - The code provides a SharedArray.list() to list all objects that itself placed in /dev/shm and so one can just iterate over the list and delete each element. (An easier approach is to use PathLib and just unlik all shared memory objects in /dev/shm) I guess a solution based on Mat's code could be adapted to try and solve the shared-memory problems. I look forward for further discussion on the subject. Diogo ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39959> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com