Skip to main content

select_working_set

Function select_working_set 

Source
pub fn select_working_set(
    candidates: &[ContextPage],
    weights: &BTreeMap<String, f64>,
    slots: usize,
) -> Vec<ContextPage>
Expand description

Deterministic greedy weighted-coverage selection of at most slots synopsis frames. Ties break by page id (the content hash), so identical inputs select identically.