1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-06-08 08:06:03 +02:00
Commit Graph

11 Commits

Author SHA1 Message Date
Jack O'Connor efbfa0463c integrate assembly implementations into the blake3 crate 2020-02-12 10:23:17 -05:00
Jack O'Connor fc219f4f8d Hasher::update_with_join
This is a new interface that allows the caller to provide a
multi-threading implementation. It's defined in terms of a new `Join`
trait, for which we provide two implementations, `SerialJoin` and
`RayonJoin`. This lets the caller control when multi-threading is used,
rather than the previous all-or-nothing design of the "rayon" feature.

Although existing callers should keep working, this is a compatibility
break, because callers who were relying on automatic multi-threading
before will now be single-threaded. Thus the next release of this crate
will need to be version 0.2.

See https://github.com/BLAKE3-team/BLAKE3/issues/25 and
https://github.com/BLAKE3-team/BLAKE3/issues/54.
2020-02-06 15:07:15 -05:00
Jack O'Connor 1384edd67c rename 1_chunk benchmarks to 1_kib 2019-12-13 10:06:46 -05:00
Jack O'Connor fb0682c4c5 add 2 KiB benchmarks 2019-12-13 09:23:21 -05:00
Jack O'Connor fe9b8fedd7 fix benchmarks build 2019-12-12 23:31:02 -05:00
Jack O'Connor 52ea6487f8 switch to representing CVs as words for the compression function
The portable implementation was getting slowed down by converting back
and forth between words and bytes.

I made the corresponding change on the C side first
(12a37be8b5),
and as part of this commit I'm re-vendoring the C code. I'm also
exposing a small FFI interface to C so that blake3_neon.c can link
against portable.rs rather than blake3_portable.c, see c_neon.rs.
2019-12-11 18:05:26 -05:00
Jack O'Connor ae7271cc87 add benchmarks for AVX-512 and NEON 2019-12-08 21:56:10 -05:00
Jack O'Connor bcb99ba087 fix the benchmarks build 2019-12-07 22:02:19 -05:00
Jack O'Connor d6fbb03d01 add reference impl benchmarks 2019-12-07 21:46:56 -05:00
Jack O'Connor 4b2d856754 add many_parents benchmarks 2019-12-06 17:18:39 -05:00
Jack O'Connor 19471453f5 add bench.rs 2019-12-06 16:17:30 -05:00