Skip to content

Commit

Permalink
Unroll at 32
Browse files Browse the repository at this point in the history
  • Loading branch information
ogxd committed Nov 10, 2024
1 parent 2f447e6 commit 3ffab33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gxhash/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pub(crate) unsafe fn compress_all(input: &[u8]) -> State {
#[inline(always)]
unsafe fn compress_many(mut ptr: *const State, end: usize, hash_vector: State, len: usize) -> State {

const UNROLL_FACTOR: usize = 8;
const UNROLL_FACTOR: usize = 32;

let remaining_bytes = end - ptr as usize;

Expand Down

0 comments on commit 3ffab33

Please sign in to comment.