Use the merge_caches_alt function in the docids merging

This commit is contained in:
Kerollmops 2024-12-04 16:37:29 +01:00
parent 29ef164530
commit be411435f5
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F
2 changed files with 7 additions and 4 deletions

View File

@ -6,7 +6,10 @@ mod searchable;
mod vectors;
use bumpalo::Bump;
pub use cache::{merge_caches, transpose_and_freeze_caches, BalancedCaches, DelAddRoaringBitmap};
pub use cache::{
merge_caches, merge_caches_alt, transpose_and_freeze_caches, BalancedCaches,
DelAddRoaringBitmap,
};
pub use documents::*;
pub use faceted::*;
pub use geo::*;

View File

@ -9,8 +9,8 @@ use roaring::RoaringBitmap;
use super::channel::*;
use super::extract::{
merge_caches, transpose_and_freeze_caches, BalancedCaches, DelAddRoaringBitmap, FacetKind,
GeoExtractorData,
merge_caches, merge_caches_alt, transpose_and_freeze_caches, BalancedCaches,
DelAddRoaringBitmap, FacetKind, GeoExtractorData,
};
use crate::{CboRoaringBitmapCodec, FieldId, GeoPoint, Index, InternalError, Result};
@ -78,7 +78,7 @@ where
if must_stop_processing() {
return Err(InternalError::AbortedIndexation.into());
}
merge_caches(frozen, |key, DelAddRoaringBitmap { del, add }| {
merge_caches_alt(frozen, |key, DelAddRoaringBitmap { del, add }| {
let current = database.get(&rtxn, key)?;
match merge_cbo_bitmaps(current, del, add)? {
Operation::Write(bitmap) => {