Skip to main content

hash_files_parallel_fast

Function hash_files_parallel_fast 

Source
pub fn hash_files_parallel_fast(
    paths: &[&Path],
    algo: HashAlgorithm,
) -> Vec<Result<String>> 
Expand description

Fast parallel hash for multi-file workloads. Skips the stat-all-and-sort phase of hash_files_parallel() and uses hash_file_nostat() per worker to minimize per-file syscall overhead. For 100 tiny files, this eliminates ~200 stat() calls (100 from the sort phase + 100 from open_and_stat inside each worker). Returns results in input order.