Skip to main content

Module engine

Module engine 

Source
Expand description

Top-level execution handle.

Engine wraps the bytecode VM behind a Send + Sync façade so long-lived services can share compile + pointer caches across threads.

Engine ──► Mutex<VM> ──► compile cache
                     └─► path cache

Use Engine::new once at boot, pass Arc<Engine> wherever you need to run queries, and the caches warm up organically. [Jetro] is the thread-local convenience built on the same VM type — pick whichever fits the call site.

Structs§

Engine
Shared, thread-safe query engine.