Expand description
Content-addressed pipeline cache: blake3(canonicalize(p).to_wire())
is the cache key.
P4.3 - content-addressed pipeline cache.
Every compiled Program has a stable fingerprint =
blake3(canonicalize(program).to_wire()). The fingerprint
becomes the cache key: two authors who write the same
computation via different spellings share cached target binaries /
native-backend artifacts, skipping recompilation.
The cache is deliberately composable at this layer. Hot paths use
InMemoryPipelineCache, persistent process-restart reuse uses
DiskCache, and callers that want both compose them with
LayeredPipelineCache.
Structs§
- Disk
Cache - Disk-backed pipeline cache. Writes one file per fingerprint
under
<root>/<hex>.bin. Reads are stateless; writes arewrite + renamefor atomicity. No eviction policy today (user decides) - the footprint is bounded by sum(artifact_size × unique_canonical_programs). - Disk
Cache Durability Report - Crash-durability evidence for disk cache artifacts.
- InMemory
Eviction Report - Structured eviction report for one in-memory cache shard.
- InMemory
Pipeline Cache - In-memory pipeline cache - zero-persistence, zero-network, sharded
FxHashMaps behind mutexes so concurrentget/puton different fingerprints rarely contend (VYRE_RUNTIME / PERF hot-cache audit). - Layered
Pipeline Cache - Composite store that reads from every backend and writes to
the first. Lets callers compose
[RamStore, DiskStore, RemoteStore]so a miss at the fast layer falls through to slower layers. - Layered
Promotion Report - Layered-cache promotion evidence.
- Pipeline
Cache Metric Error - Pipeline-cache metric arithmetic failure.
- Pipeline
Cache Metrics - Pipeline-cache instrumentation counters.
- Pipeline
Fingerprint - The blake3 fingerprint of a canonicalized Program. 32 bytes so collisions are cryptographically impossible for our scale.
- Remote
Cache - HTTPS-backed cache that reads pre-compiled artifacts from a
base URL. Feature-gated on
remote-cacheso library users who only want disk caching don’t pull inureq.
Enums§
- Disk
Cache Error - Errors from disk-backed pipeline cache construction / use.
- InMemory
Eviction Reason - Reason the in-memory pipeline cache evicted retained artifacts.
Traits§
- Pipeline
Cache Store - Trait for persistent pipeline-cache backends.
super::DiskCacheandsuper::RemoteCache(when theremotefeature is enabled) ship disk- and network-backed implementations; tests here use the in-memorysuper::InMemoryPipelineCache.
Type Aliases§
- Persistent
Pipeline Cache Store - Alias for the disk-backed pipeline cache store.