Replies: 1 comment 4 replies
-
Are you sure the performance issue is how If you say that the processes do not exchange data but only need to synchronize, that sounds like it would be particularly likely that the overhead of synchronization is high no matter which mechanism is applied. Could you provide a small reproducer so that the design problem could be discussed here? From what you have written so far, it does not sound likely that replacing the IPC mechanism with something written in Rust would make a difference. |
Beta Was this translation helpful? Give feedback.
-
I am wondering if there is a way to use PyO3 and rust to get around very slow multiprocessing wait calls. The processes that are doing the wait are doing it on a Python Barrier object. I do NOT need safe memory access or synchronization for stored data I do need the spawned processes to stay temporally in sync with each other. I was hoping I could leverage PyO3 to perform some crazy basic IPC (time sync signal only) between the spawned processes. Does this approach make any sense it is based mostly on rust being generally faster than Python so looking to see if I can leverage it for this rater odd need for process synchronization.
Beta Was this translation helpful? Give feedback.
All reactions