parallel_hash_with_threads

Function parallel_hash_with_threads 

Source
pub fn parallel_hash_with_threads(data: &[u8], num_threads: usize) -> [u8; 32]
Expand description

Parallel hash computation with custom thread count

Similar to parallel_hash but allows explicit control over parallelism. Note: BLAKE3 has built-in multi-threading support, so this function primarily serves as a wrapper with explicit thread control hints.

§Arguments

  • data - Input data to hash
  • num_threads - Number of threads to use (minimum 1, maximum 16)

§Returns

32-byte BLAKE3 hash digest