Skip to main content

Module decoder_cache_key

Module decoder_cache_key 

Source
Expand description

Cache key for the loaded_decoders caches in WindowCoordinator and MonolithicCoordinator.

Both coordinators cache LoadedDecoder instances keyed by what was used to build the merged decoding hypergraph for a window. This module owns the key type and the helpers that build it; both coordinators share the same key shape so that a fix to the key (e.g. adding a newly relevant input) lands in one place.

The key intentionally lives outside the two coordinator modules — neither coordinator “owns” it conceptually, so placing it here mirrors the placement of other cross-coordinator shared types in crate::coordinator.

Structs§

DecoderCacheKey
Cache key for loaded_decoders in both crate::coordinator::WindowCoordinator and crate::coordinator::MonolithicCoordinator.
ErrorModelFingerprint
Fingerprint of all per-ErrorModel state read live during decoding_hypergraph(). Captures every field whose value can affect the merged hyperedges of a window:
ProbabilityModifierBits
Bit-packed view of ProbabilityModifier whose f64 fields are stored as their raw u64 bit-patterns so the value implements Hash + Eq.

Traits§

FingerprintSource
Abstraction over the per-coordinator ErrorModel wrapper struct so that build_modifier_fingerprints can run unchanged against either coordinator::monolithic_coordinator::ErrorModel or coordinator::window_coordinator::ErrorModel.

Functions§

build_modifier_fingerprints
Build the per-window modifier fingerprint vector indexed by local_eid (i.e. mapping.global_eid_of[local_eid] is the global eid whose modifier state we fingerprint). error_model_types resolves each instance.etype to the ErrorModelType whose structural digest contributes to the fingerprint.
etype_digest
Compute the structural digest of a resolved ErrorModelType for use as the etype_digest field of ErrorModelFingerprint.