From 49e1be5278f6e0e2cd3fffebd51f07cb6f73715a Mon Sep 17 00:00:00 2001 From: Ilia Gradina Date: Fri, 28 Aug 2026 10:55:38 +0300 Subject: [PATCH 1/2] fix: honour QUERY_REMAP in the index_stream tail loop The prefetch-ring flush tested REMAP instead of QUERY_REMAP, so index_stream_maybe_remap:: remapped the last B keys on a minimal PHF and disagreed with index_no_remap there. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 0d19cc4..151e336 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -948,7 +948,7 @@ impl< let pilot = self.ph.pilots.as_ref().index(cur_bucket); let slot = self.ph.slot(cur_hash, pilot); - let slot = if REMAP && slot >= self.ph.n { + let slot = if QUERY_REMAP && slot >= self.ph.n { self.ph.remap.index(slot - self.ph.n) as usize } else { slot From 6359d024671b3947e8f59b42b8959219feecdabb Mon Sep 17 00:00:00 2001 From: Ilia Gradina Date: Fri, 28 Aug 2026 10:55:44 +0300 Subject: [PATCH 2/2] chore: drop a leftover eprintln in max_index_no_remap --- src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 151e336..93f7e9f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -762,7 +762,6 @@ impl< /// Around `n/alpha ~ 1.01*n`. #[doc(hidden)] pub fn max_index_no_remap(&self) -> usize { - eprintln!("Rem slots: {:?}", self.rem_slots); self.slots_total }