3 ms·
Funny the performance section just progressively turned into "don't use Python if you need performance": Remove Python loops and vectorize with NumPy => use Num
by YuechenLi 2mo ago
Funny the performance section just progressively turned into "don't use Python if you need performance": Remove Python loops and vectorize with NumPy => use Numba JIT'd Python that is only partially compatible with CPython => just don't use Python and write Rust instead for hot loop.
Instead of jumping through all this hoops with Python, it's probably easier to write Rust from the beginning instead, because then you won't have to deal with the FFI complexity between Rust and Python at all.