8 ms·
Other languages have large ecosystems as well, though, and are often far easier to optimize for speed. For python, speed was pretty much a non-goal. You could
by xg15 5y ago
Other languages have large ecosystems as well, though, and are often far easier to optimize for speed. For python, speed was pretty much a non-goal.
You could try to switch to Go or Nodejs - or do what Numpy/Scipy and TensorFlow did: write the performance-critical parts in C and only use python for the high-level control logic.