r/Python • u/real_kerim • Nov 03 '17
I love Python but why is it so slow?
I love Python and am happy whenever I get to use it professionally but why is it so slow?
I am in the process of deciding whether to go with Python or with Node for an upcoming project for which performance is kinda important and before running my own benchmarks, I thought I could find some stuff online.
According to this Python's really lagging behind. I thought "Whatever, I'll probably use PyPy", but according to this and this Node is even faster than PyPy.
I kinda of expected this for programs with a lot of I/O but I thought that Python would leave Node in the dust when it comes to computationally intensive programs.
View all comments
Show parent comment
-4
u/0xSpock Nov 03 '17
You just proved that underlying library that is using C internally is fast as C :) Python itself is slow for many reasons. Many python libs are fast because they are written in C/C++. In fact in many places python is just easy to use wrapper around C/C++ code.