How Python multithreading and multiprocessing compare to synchronous code
Published in
5 min readMar 6, 2021
Recently, I’ve been working on several projects that required some kind of asynchronous behavior to speed up time execution. Most of you probably know that Python has a multi processing/threading modules that could help building such applications.
After a little bit of refactoring of my initial code, which by the way was synchronous, I was able to do a multiprocessing version of it that had quite an improvement. What I wasn’t sure about was by how much exactly improved my time execution. That was something…