Expand description
Encodes room state snapshots as compact parent-linked deltas.
Each state entry combines a short state key with a short event ID in a fixed-width record. Reconstructed parent chains are cached to make repeated state resolution inexpensive while bounding persistent diff depth.
StructsΒ§
- Data π
- Hash
SetCompress State Event - Reports a saved snapshot and its change from the roomβs previous state.
- Service
- Persists, reconstructs, and caches compressed room state snapshots.
- Short
State Info - Describes one materialized frame in a compressed state chain.
- State
Diff π - One state as a delta against a parent state.
FunctionsΒ§
- compress_
state_ πevent - Packs a short state key and short event ID into one compressed record.
- compressed_
state_ πsize - parse_
compressed_ πstate_ event - Unpacks a compressed state record into its two short IDs.
Type AliasesΒ§
- Compressed
State - Ordered set of compressed state-key and event-ID pairs.
- Compressed
State Event - Fixed-width encoding of one short state key and short event ID.
- Parent
States πVec - Short
State πInfo Vec - State
Info πLruCache