Skip to main content

hash_objects_parallel

Function hash_objects_parallel 

Source
pub fn hash_objects_parallel(
    algo: HashAlgo,
    items: &[(ObjectKind, &[u8])],
    threads: NonZeroUsize,
) -> Result<Vec<ObjectId>, ParallelHashError<Error>>
Expand description

Hash Git objects in parallel, preserving input order.

ยงErrors

Returns ParallelHashError::Task with Error::HashCollision when sha1dc detects a chosen-prefix collision in any item.