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:67
Declared as: python:arxjit:arxjit.core.jit
Compile a pure Python function through the Arx stack.
Use @jit directly or supply signature and cache options. Records the requested signature and returns a callable wrapper. When called with options it returns a partial that wraps the function next.
Parameters
-
fn โ The function to wrap, when used as a bare decorator.; Type: PyFunc | None
-
signature โ The explicit call signature.; Type: Signature | None
-
cache โ Whether to cache compiled artifacts.; Type: bool
Returns
Wrapped function, or a decorator awaiting a function when options are supplied.; Type: JitFunction | functools.partial[JitFunction]