3 ms·
> reasonably fast is a bit of an understatement IMO. I mean that a naive loop that traverses your data does not take several minutes like in Python. But there
by enriquto 3y ago
> reasonably fast is a bit of an understatement IMO.
I mean that a naive loop that traverses your data does not take several minutes like in Python. But there's a guy in my lab who takes my stupid loops, avxs the fuck out of them, and they become 8 times faster. Now, that's what you would call unreasonably fast (short of rewriting the whole thing for the GPU).
- m_mueller 3y agoFair enough. Btw. IMO rewriting for GPU (if you do have the hardware) can be quite a bit simpler than doing vector optimisations for CPU, depending on the codebase. Back in my research days I actually created a framework for doing just that with Fortran: https://github.com/muellermichel/Hybrid-Fortran https://github.com/muellermichel/Hybrid-Fortran.