resqpy.olio.numba_compat

Thin wrapper around numba.njit that optionally enables numba caching.

Cache behaviour can be controlled via enviornment varibales:

RESQPY_NUMBA_CACHE :

Set to “true” or “TRUE” to enable or on-disk caching for resqpy functions which are decorated by njit. If unset, caching is disabled.

For more info, see <https://numba.readthedocs.io/en/stable/developer/caching.html>.

Functions

njit

Drop-in replacement for numba.njit that sets "cache" kwarg according to a global config.