Skip to main content

parallel_worthwhile

Function parallel_worthwhile 

Source
pub fn parallel_worthwhile(
    item_count: usize,
    total_bytes: usize,
    threads: NonZeroUsize,
    min_items: usize,
    min_total_bytes: usize,
) -> bool
Expand description

Legacy helper: returns true when parallel hashing is expected to beat a serial loop.