Skip to main content

Module state

Module state 

Source

Structs§

ItemState
RuntimeState
StateProjectionLimits
ThreadState
TurnState

Enums§

ConnectionState
TurnStatus

Functions§

reduce
Pure reducer: consumes old state + envelope and returns next state. Delegates to reduce_in_place_with_limits with default retention limits.
reduce_in_place
In-place reducer used by runtime projection. Delegates to reduce_in_place_with_limits with default retention limits.
reduce_in_place_with_limits
In-place reducer with explicit retention bounds for long-running runtimes. Allocation: new map entries + appended deltas; prune candidate vectors are allocated only when a cap is exceeded. Complexity: O(1) average map work per event, plus O(t) touched-thread item-cap checks (t <= max_turns_per_thread after pruning), and O(n log n) only when sorting eviction candidates for thread/turn/item pruning.