Skip to main content

load_or_compute

Function load_or_compute 

Source
pub fn load_or_compute(
    patterns: &[Pattern<'_>],
    options: AssembleOptions,
) -> Result<PackedDfa, PatternError>
Expand description

Load a cached PackedDfa, or compute and persist one if missing.

The cache is bypassed entirely when VYRE_NO_CACHE=1 is set.

ยงErrors

Returns PatternError from the underlying pipeline when compilation fails. Cache-layer IO errors are NOT propagated; a stale or unreadable cache entry causes a recompute and a warning to stderr.