Skip to main content

RESYNC_STEPS

Static RESYNC_STEPS 

Source
pub static RESYNC_STEPS: AtomicU64
Expand description

Byte-at-a-time resynchronisation steps taken by NarrativeMemory::load_or_init across the process, and the count from the most recent load that took any.

Exposed because the cost is otherwise invisible: reading narrative_memory.bin is 0.22 ms, and a layout disagreement between NarrativeEpisode::to_bytes and from_bytes turns the load into a scan over the whole file, a byte at a time. A count in the low hundreds means the two layouts agree and the cost really is the read; a count near the file size means they do not, and the parser walks the file every recall.