3 ms·
> Python needs to have an urgent answer to the use of multiple cores https://docs.python.org/3/library/multiprocessing.html https://docs.python.org/3/library/m
by paulddraper 3y ago
> Python needs to have an urgent answer to the use of multiple cores
https://docs.python.org/3/library/multiprocessing.html https://docs.python.org/3/library/multiprocessing.html
- KaiserPro 3y agoIts not really an answer. if you're doing multiprocessing, you're better off having just having separate processes and use a message bus to do IPC. There are caveats, but multiprocessing rarely gives you enough extra for the overhead.
- paulddraper 3y ago> you're better off having just having separate processes and use a message bus to do IPC Why are you better off that way?
- KaiserPro 3y agoThe sharing of data between processes in multi-processing, is done via posix pipe. This means that any quantity of data interchange incurs a heavy penalty. So the more you try and coordinate, the slower it gets. also `import logging` acts funny as well.