mirror of
https://github.com/BLAKE3-team/BLAKE3
synced 2024-05-27 04:26:03 +02:00
Merge 862eab6ff7
into 12823b8760
This commit is contained in:
commit
f81b2e2544
|
@ -196,7 +196,9 @@ impl Input {
|
|||
// multiple threads. This doesn't work on stdin, or on some files,
|
||||
// and it can also be disabled with --no-mmap.
|
||||
Self::Mmap(cursor) => {
|
||||
hasher.update_rayon(cursor.get_ref());
|
||||
for chunk in cursor.get_ref().chunks(4_194_304) {
|
||||
hasher.update_rayon(chunk);
|
||||
}
|
||||
}
|
||||
// The slower paths, for stdin or files we didn't/couldn't mmap.
|
||||
// This is currently all single-threaded. Doing multi-threaded
|
||||
|
|
Loading…
Reference in New Issue