From 2636cfec2f010a6b35b48179507663652a8782d0 Mon Sep 17 00:00:00 2001 From: lukaslueg Date: Wed, 15 Jul 2026 16:31:03 +0200 Subject: [PATCH] Inline finaliziers --- src/xxh3.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xxh3.rs b/src/xxh3.rs index 7ccc94c..2a8a37b 100644 --- a/src/xxh3.rs +++ b/src/xxh3.rs @@ -1046,6 +1046,7 @@ impl Xxh3Default { ((high as u128) << 64) | (low as u128) } + #[inline] ///Computes hash. pub fn digest(&self) -> u64 { //Separating digest mid sized allows us to inline this function, which benefits @@ -1057,6 +1058,7 @@ impl Xxh3Default { } } + #[inline] ///Computes hash as 128bit integer. pub fn digest128(&self) -> u128 { //Separating digest mid sized allows us to inline this function, which benefits @@ -1205,6 +1207,7 @@ impl Xxh3 { ((high as u128) << 64) | (low as u128) } + #[inline] ///Computes hash. pub fn digest(&self) -> u64 { //Separating digest mid sized allows us to inline this function, which benefits @@ -1220,6 +1223,7 @@ impl Xxh3 { } } + #[inline] ///Computes hash as 128bit integer. pub fn digest128(&self) -> u128 { //Separating digest mid sized allows us to inline this function, which benefits