3 ms·
> Just use Erlang or Go. Even Java... Python doesn't hold a candle to any of those languages when it comes to multitasking. 1000%. Pretty much any other langu
by ke88y 3y ago
> Just use Erlang or Go. Even Java... Python doesn't hold a candle to any of those languages when it comes to multitasking.
1000%. Pretty much any other language.
> But, if you genuinely needed and advice on how to use Python's multiprocessing, and for some screwed-up reason you cannot use a decent language
Sometimes the drag of dealing with Python multiprocessing is easier and incurs less debt than splitting the project across multiple languages and dealing with (de)serialization of complicated data structures in way that doesn't introduce bottlenecks. And there are at least a few domains where there isn't really a viable alternative to Python.
But a good rule of thumb is that if you're not going to spend at least a couple full days dealing with the issues listed above -- or if you don't absolutely need to use a big chunk of complicated Python code -- you're probably better off picking a different language.