API reference
python:arxjit:arxjit.jit
function jit
jit(fn: PyFunc | None = None, *, signature: Signature | None = None, cache: bool = False) -> JitFunction | functools.partial[JitFunction]
Source: packages/arxjit/src/arxjit/core.py:75
Declared as: python:arxjit:arxjit.core.jit
Compile a pure Python function through the Arx stack.
Usable bare as @jit or with options as @jit(signature=i64(i64, i64), cache=True). Records the requested signature and returns a callable wrapper. When called with options it returns a partial that wraps the function next.
Parameters
-
fn โ Type: PyFunc | None; The function to wrap, when used as a bare decorator.
-
signature โ Type: Signature | None; The explicit call signature.
-
cache โ Type: bool; Whether to cache compiled artifacts.
Returns
Type: JitFunction | functools.partial[JitFunction]