5 ms·
By rewriting Python code into something that does not resemble Python not even remotely, you can make Python code run faster.
by mahouse 11y ago
By rewriting Python code into something that does not resemble Python not even remotely, you can make Python code run faster.
- endrebak 11y agoActually, it looks almost exactly the same; you just add a cdef int or long to the fibonacci for example. And using the Python scientific stack (which would likely give you all the speedups you will ever need) _is_ Python and looks like Python.
- coldtea 11y ago>not resemble Python not even remotely So, I don't see where you got that from. What he did was VERY MINIMAL changes. In some cases a mere annotation.
- IndianAstronaut 11y agoTrue. It's almost the equivalent of using Rcpp with R and saying it runs really fast.