Skip to content

Commit

Permalink
Add #[inline(always)] to find_inner
Browse files Browse the repository at this point in the history
  • Loading branch information
QuarticCat committed Nov 20, 2022
1 parent 5d49276 commit 7d6c2a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ impl<A: Allocator + Clone> RawTableInner<A> {

/// 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<usize> {
let h2_hash = h2(hash);
let mut probe_seq = self.probe_seq(hash);
Expand Down

0 comments on commit 7d6c2a8

Please sign in to comment.