2 ms·
Use multiprocessing [0] if you really want to stick with python. You're leaving a lot of performance on the table due to inter process communication but python
by imtringued 7y ago
Use multiprocessing [0] if you really want to stick with python. You're leaving a lot of performance on the table due to inter process communication but python isn't exactly known for being the fastest programming language. I assume your goal is making legacy applications run on multiple cores and multiprocessing is fine for that.
[0] https://docs.python.org/3.8/library/multiprocessing.html https://docs.python.org/3.8/library/multiprocessing.html