Numba
Numba is an open-source just-in-time compiler for Python that focuses on accelerating numerical code. Built to work with NumPy and Python numerical constructs, Numba translates a subset of Python functions into optimized machine code at runtime using the LLVM compiler infrastructure. By compiling hot functions, it aims to deliver speeds close to compiled languages while remaining easy to integrate into existing Python code.
Numba provides decorators such as @jit and @njit to mark functions for compilation. In nopython mode, the
Numba supports parallel execution through the prange construct and multi-threading, enabling parallel loops to run on
Numba targets a subset of Python and NumPy; features outside the supported subset may fall back to
Developed as part of the NumPy ecosystem, Numba is maintained by the Numba project with contributions from