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§
- Decoder
Cache Key - Cache key for
loaded_decodersin bothcrate::coordinator::WindowCoordinatorandcrate::coordinator::MonolithicCoordinator. - Error
Model Fingerprint - Fingerprint of all per-
ErrorModelstate read live duringdecoding_hypergraph(). Captures every field whose value can affect the merged hyperedges of a window: - Probability
Modifier Bits - Bit-packed view of
ProbabilityModifierwhosef64fields are stored as their rawu64bit-patterns so the value implementsHash + Eq.
Traits§
- Fingerprint
Source - Abstraction over the per-coordinator
ErrorModelwrapper struct so thatbuild_modifier_fingerprintscan run unchanged against eithercoordinator::monolithic_coordinator::ErrorModelorcoordinator::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 globaleidwhose modifier state we fingerprint).error_model_typesresolves eachinstance.etypeto theErrorModelTypewhose structural digest contributes to the fingerprint. - etype_
digest - Compute the structural digest of a resolved
ErrorModelTypefor use as theetype_digestfield ofErrorModelFingerprint.