From 7d6c2a82f9156067744c7f1f1b900bbc3a379cb4 Mon Sep 17 00:00:00 2001 From: QuarticCat Date: Sun, 20 Nov 2022 16:06:04 +0800 Subject: [PATCH] Add `#[inline(always)]` to `find_inner` --- src/raw/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raw/mod.rs b/src/raw/mod.rs index 625ca1d719..63f97cffb8 100644 --- a/src/raw/mod.rs +++ b/src/raw/mod.rs @@ -1189,7 +1189,7 @@ impl RawTableInner { /// Searches for an element in the table. This uses dynamic dispatch to reduce the amount of /// code generated, but it is eliminated by LLVM optimizations. - #[inline] + #[inline(always)] fn find_inner(&self, hash: u64, eq: &mut dyn FnMut(usize) -> bool) -> Option { let h2_hash = h2(hash); let mut probe_seq = self.probe_seq(hash);