Skip to main content

blake2b_hash_files_parallel

Function blake2b_hash_files_parallel 

Source
pub fn blake2b_hash_files_parallel(
    paths: &[&Path],
    output_bytes: usize,
) -> Vec<Result<String>> 
Expand description

Batch-hash multiple files with BLAKE2b using the best strategy for the workload. Samples a few files to estimate total data size. For small workloads, uses single-core SIMD batch hashing (blake2b_hash_files_many) to avoid stat and thread spawn overhead. For larger workloads, uses multi-core work-stealing parallelism where each worker calls blake2b_hash_file (with I/O pipelining for large files on Linux). Returns results in input order.