From 3ffab33cca2c715204103158d44e20a1106e612a Mon Sep 17 00:00:00 2001 From: Olivier Giniaux Date: Sun, 10 Nov 2024 22:11:59 +0100 Subject: [PATCH] Unroll at 32 --- src/gxhash/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gxhash/mod.rs b/src/gxhash/mod.rs index d5995e6..3d43b0a 100644 --- a/src/gxhash/mod.rs +++ b/src/gxhash/mod.rs @@ -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;