diff options
| author | Jack O'Connor <[email protected]> | 2019-12-12 17:52:43 -0500 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2019-12-12 20:39:00 -0500 |
| commit | a5cc3b28679d724020b8810ea9aecea9f54a058f (patch) | |
| tree | e27986baf6e8052896253c8e672caffa1e98ff52 /reference_impl | |
| parent | 66fee0c6ef76b09918235d00ce007a730ff60bf6 (diff) | |
reduce the CHUNK_LEN from 2048 bytes to 1024 bytes
Smaller chunk sizes are a big benefit for parallelism at shorter input
lengths, and recent benchmarks show that this reduction has a relative
small cost in terms of peak throughput. It's also a nice round number.
Diffstat (limited to 'reference_impl')
| -rw-r--r-- | reference_impl/reference_impl.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/reference_impl/reference_impl.rs b/reference_impl/reference_impl.rs index f90b07d..07cbd80 100644 --- a/reference_impl/reference_impl.rs +++ b/reference_impl/reference_impl.rs @@ -4,7 +4,7 @@ use core::convert::TryInto; const OUT_LEN: usize = 32; const KEY_LEN: usize = 32; const BLOCK_LEN: usize = 64; -const CHUNK_LEN: usize = 2048; +const CHUNK_LEN: usize = 1024; const ROUNDS: usize = 7; const CHUNK_START: u32 = 1 << 0; |
