Skip to main content

should_use_parallel

Function should_use_parallel 

Source
pub fn should_use_parallel(paths: &[&Path]) -> bool
Expand description

Check if parallel hashing is worthwhile for the given file paths. Only uses rayon when files are individually large enough for the hash computation to dominate over rayon overhead (thread pool init + work stealing). For many small files (e.g., 100 × 100KB), sequential is much faster.