4 ms·
I dont quite understand why the author bothers with creating ctypes bindings to the shm C API while using public shared memories. You are better served by usin
by Galanwe 2y ago
I dont quite understand why the author bothers with creating ctypes bindings to the shm C API while using public shared memories.
You are better served by using a tmpfs (e.g. /dev/shm) and the regular python file API + mmap.
Also for reading and writing, the struct module (e.g. pack) is much more idiomatic than mapping a C style array.
- emmelaich 2y ago> At work-work the system uses, for historical reasons, a lot of SystemV shared memory ... > I wanted to mess with the shared memory on such a system, from Python for convenience,