Numba gives you the power to speed up your applications with high performance functions written directly in Python. With a few annotations, array-oriented and math-heavy Python code can be just-in-time compiled to native machine instructions, similar in performance to C, C++ and Fortran, without having to switch languages or Python interpreters.
Numba works by generating optimized machine code using the LLVM compiler infrastructure at import time, runtime, or statically (using the
Nie, nie jest. Równie dobrze możemy wziąć benchmark z drzewami binarnymi i wyjdzie nam, że JavaScript jest przynajmniej dwa razy szybszy od C - nie jest, po prostu w tym jednym przypadku kompilator JIT optymalizuje naiwny kod lepiej niż kompilator C.
Komentarze (7)
najlepsze
Jednak ciekawostka jak można coś pisać luźnie i mieć prędkość