pub fn hash_files_auto(
paths: &[&Path],
algo: HashAlgorithm,
) -> Vec<Result<String>> ⓘExpand description
Auto-dispatch multi-file hashing: picks sequential or parallel based on workload.
For small files (<64KB sample), sequential avoids thread spawn + readahead overhead that dominates for tiny files. On the “100 × 55-byte files” benchmark, this saves ~5ms of overhead (thread creation + 200 stat() calls + 100 fadvise() calls).
For large files (>=64KB), parallel processing amortizes thread spawn cost over substantial per-file hash work. Returns results in input order.