Expand description
Runtime JIT backend: O(1) compiled-function lookup with background compilation.
- Startup AOT preload from
ArtifactStore::load_allinto an immutable in-memory map. - O(1)
JitBackend::lookupthat only reads the resident map. - Fire-and-forget lookup-observed events to the backend thread.
- Background JIT compilation for hot keys (threshold-based promotion).
ModulesΒ§
- api π
- Public types and handle methods.
- backend π
- config π
- Runtime configuration.
- stats π
- Runtime statistics.
- storage π
- Artifact storage trait and data model.
- worker π
- Background JIT and AOT compilation workers.
StructsΒ§
- AotRequest
- Request to prepare an AOT artifact.
- Artifact
Key - Full artifact identity for persisted artifacts.
- Artifact
Manifest - Metadata for a stored artifact.
- Backend
Inner π - Inner state for
JitBackend. Owns the backend thread lifecycle. - Backend
Shared π - State shared between
JitBackend(viaBackendInner) and the backend thread. - Backend
Thread π - Backend thread handle and its completion signal.
- Compilation
Event - Event emitted after a compilation attempt completes.
- Compiled
Program - A compiled EVM program kept alive in the resident map.
- JitBackend
- JIT compilation backend with O(1) compiled-function lookup.
- Lazy
Spawn πState - State kept around for lazily spawning the backend thread.
- Lookup
Request - Request to look up a compiled function.
- Runtime
Artifact Store - In-memory artifact index backed by dylib files in a temporary directory.
- Runtime
Cache Key - Runtime cache key: the minimal identity for a compiled program at runtime.
- Runtime
Config - Runtime configuration.
- Runtime
Stats Snapshot - A point-in-time snapshot of runtime stats.
- Runtime
Tuning - Tuning knobs for the runtime.
- Stored
Artifact - A stored artifact consisting of a manifest and a path to the compiled dylib.
EnumsΒ§
- Backend
Selection - Backend selection for compilation.
- Compilation
Kind - The kind of compilation that was performed.
- Interpret
Reason - Reason why the runtime returned βinterpretβ instead of a compiled function.
- Lookup
Decision - Result of a lookup.
- Program
Kind - Whether this program was compiled AOT or JIT.
TraitsΒ§
- Artifact
Store - Trait for loading and storing compiled artifacts.