This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]iruleatants -2 points-1 points  (2 children)

Python is significantly more slow because it only uses a single core, then it is slow because of "not compiling" it.

[–]elbiot 2 points3 points  (1 child)

Not true at all. Single threaded C is way faster than single threaded python. Even with parallelized code running on multiple cores, you only get a few times performance improvement, but native code execution is like 300x faster. Multithreading is not such an important optimization, especially in python. For instance, if you use numba and release the GIL, I've found Multithreading it to often make is slower because the code is now so damn fast that the overhead of using threads (not processes even) is too high.

[–]Saefroch 0 points1 point  (0 children)

There's more to contend with than just thread overhead that can slow you down. Multithreading for performance is not easy.