Skip to main content

Module prune

Module prune 

Source
Expand description

Selects a bounded set of useful room forward extremities.

Leaves are classified by reachability, reference status, origin, event kind, and stream position. Receive and administrative callers share the scoring logic but differ in whether referenced leaves need another sweep.

StructsΒ§

Candidate πŸ”’
Live πŸ”’
PruneSummary
Counts the outcome of one forward-extremity pruning pass.

EnumsΒ§

Class πŸ”’
Partial πŸ”’
A leaf’s classification before per-server reachability is resolved into Live::owner_online, kept apart so the reachability query runs once per unique server rather than once per leaf.
Trigger
Selects the call path that initiated an extremity pruning pass.

FunctionsΒ§

drop_order πŸ”’
Orders live leaves most-droppable first: message before state, redacted before intact, reachable-owner before unreachable, oldest before newest.
prune_goal πŸ”’
Calculates the drop goal for one paced receive-path pruning round.
select πŸ”’
Chooses survivors from the classified leaves. Dangling and referenced leaves are dropped for free (not counted toward goal), own leaves are always kept, and the most-droppable live leaves are dropped up to goal, subject to the one-survivor floor.

Type AliasesΒ§

Servers πŸ”’