Skip to main content

Module compiler

Module compiler 

Source
Expand description

§Workflow Compilation Module

Pre-compiles all JSONLogic expressions used by workflows and tasks at engine initialization. Each compiled Arc<Logic> is stored directly on the workflow/task/config struct that owns it — no central logic_cache, no index lookup, no bounds check on the hot path. The Engine is wrapped in Arc and is Send + Sync so the entire stack is safe to share across Tokio worker threads.

Structs§

LogicCompiler
Compiles JSONLogic expressions and stamps them onto workflow/task/config structs as Option<Arc<Logic>> slots.