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. Always parallelize with 2+ files — rayon’s thread pool is initialized lazily once, and work-stealing overhead is negligible compared to I/O.