mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-10-22 03:32:52 +00:00
- Branchless binary search in SparseBlock, using std::hint::select_unpredictable. Indices are usize: with u16, LLVM emits a branch on x86_64, even with the hint. - SparseBlock::rank_if_exists_batch checks the next value first, then uses an exponential search. The search is bounded by the doc id gap: values are distinct and sorted, so vals[c + k] >= vals[c] + k. - OptionalIndex::rank_if_exists_batch reserves its output vectors. - MSRV 1.88, for select_unpredictable. - Add a rank_if_exists_batch group to bench_optional_index, unit tests and proptests.