Skip to main content

should_use_levelwise

Function should_use_levelwise 

Source
pub fn should_use_levelwise(
    max_depth: usize,
    avg_children_per_level: usize,
) -> bool
Expand description

Check if LevelWise sync is appropriate for a tree.

Returns true if LevelWise is likely more efficient than HashComparison. Requires max_depth >= 1 because depth-0 trees have no hierarchy to traverse.