Skip to main content

overlap

Function overlap 

Source
fn overlap(
    operand: &Operand<'_>,
    members: &[usize],
    on_duplicate: impl FnMut(usize) -> Result<()>,
    base: usize,
    budget: Option<&mut Budget<'_>>,
) -> Result<()>
Expand description

Reports every point where two or more members are present.

The group’s list of present points is the only thing this scan allocates, and scanning one group is its own phase: the block the list takes is charged when it outgrows what it holds, and the next group’s scan enters base again rather than adding a second list to it. A group of one member and a group whose members carry no sample both cost nothing, however long their axes are.