3 ms·
In practice a lot of heavy lifting performance-dependent code is cython. For example numpy and PyTorch. So Python will definitely be faster than js if you use p
by janalsncm 1y ago
In practice a lot of heavy lifting performance-dependent code is cython. For example numpy and PyTorch. So Python will definitely be faster than js if you use proper vectorized ops.
The vast majority of my Python code is for data exploration and preprocessing which are usually one-offs or need to be run only a couple of times. Or maybe it’s a nightly job that takes 5 minutes instead of 30 seconds in another language, but it doesn’t matter because it’s not user facing.
Actual Python execution time very rarely comes into play. If it does and it’s a problem, I will create a pyo3 rust binding.
- internetter 1y agoI think our processing workloads are just different. If you're spending 90% of your compute time in numpy or whatever sure. But for me that wasn't the case, the overhead absolutely was the python.