Closed zuoxingdong closed 6 years ago
Sorry I missed this. Given your example code, where the individual work items appear to be CPU bound, I'm not sure aiomultiprocess would help you much. aiomultiprocess depends on serializing and deserializing data between parent/child processes, which still takes the GIL in both processes. If your workload instead was itself IO bound, such as making or waiting on network requests, then aiomultiprocess might be worth considering.
I am trying to use
aiomultiprocess
in my project which the simplified idea of current implementation isIt has a lot of IO communication through Pipes, I am wondering how could I speed it up with
aiomultiprocess