Increase the ARCache to 500 entries

This commit is contained in:
Clément Renault 2024-07-21 23:08:11 +02:00
parent 2b7b18fb5f
commit 6264dbf326
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F
8 changed files with 10 additions and 10 deletions

View File

@ -38,7 +38,7 @@ pub fn extract_facet_number_docids<R: io::Read + io::Seek>(
);
let mut cached_facet_number_docids_sorter =
SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
NonZeroUsize::new(20).unwrap(),
NonZeroUsize::new(500).unwrap(),
facet_number_docids_sorter,
b"fnd",
super::SLED_DB.clone(),

View File

@ -46,7 +46,7 @@ pub fn extract_facet_string_docids<R: io::Read + io::Seek>(
);
let mut cached_facet_string_docids_sorter =
SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
NonZeroUsize::new(200).unwrap(),
NonZeroUsize::new(500).unwrap(),
facet_string_docids_sorter,
b"fsd",
SLED_DB.clone(),

View File

@ -41,7 +41,7 @@ pub fn extract_fid_word_count_docids<R: io::Read + io::Seek>(
);
let mut cached_fid_word_count_docids_sorter =
SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
NonZeroUsize::new(300).unwrap(),
NonZeroUsize::new(500).unwrap(),
fid_word_count_docids_sorter,
b"fwc",
super::SLED_DB.clone(),

View File

@ -50,7 +50,7 @@ pub fn extract_word_docids<R: io::Read + io::Seek>(
max_memory.map(|m| m / 3),
);
let mut cached_word_fid_docids_sorter = SorterCacheDelAddCboRoaringBitmap::<20, _>::new(
NonZeroUsize::new(300).unwrap(),
NonZeroUsize::new(500).unwrap(),
word_fid_docids_sorter,
b"wfd",
SLED_DB.clone(),
@ -111,7 +111,7 @@ pub fn extract_word_docids<R: io::Read + io::Seek>(
max_memory.map(|m| m / 3),
);
let mut cached_word_docids_sorter = SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
NonZeroUsize::new(100).unwrap(),
NonZeroUsize::new(500).unwrap(),
word_docids_sorter,
b"wdi",
SLED_DB.clone(),
@ -126,7 +126,7 @@ pub fn extract_word_docids<R: io::Read + io::Seek>(
max_memory.map(|m| m / 3),
);
let mut cached_exact_word_docids_sorter = SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
NonZeroUsize::new(100).unwrap(),
NonZeroUsize::new(500).unwrap(),
exact_word_docids_sorter,
b"ewd",
SLED_DB.clone(),

View File

@ -53,7 +53,7 @@ pub fn extract_word_pair_proximity_docids<R: io::Read + io::Seek>(
max_memory.map(|m| m / MAX_DISTANCE as usize),
);
SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
NonZeroUsize::new(100).unwrap(),
NonZeroUsize::new(500).unwrap(),
sorter,
b"wpp",
super::SLED_DB.clone(),

View File

@ -39,7 +39,7 @@ pub fn extract_word_position_docids<R: io::Read + io::Seek>(
);
let mut cached_word_position_docids_sorter =
SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
NonZeroUsize::new(300).unwrap(),
NonZeroUsize::new(500).unwrap(),
word_position_docids_sorter,
b"wpd",
super::SLED_DB.clone(),

View File

@ -66,7 +66,7 @@ impl<'t, 'i> WordPrefixDocids<'t, 'i> {
self.max_memory,
);
let mut cached_prefix_docids_sorter = SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
NonZeroUsize::new(200).unwrap(),
NonZeroUsize::new(500).unwrap(),
prefix_docids_sorter,
b"pdi",
SLED_DB.clone(),

View File

@ -71,7 +71,7 @@ impl<'t, 'i> WordPrefixIntegerDocids<'t, 'i> {
);
let mut cached_prefix_integer_docids_sorter =
SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
NonZeroUsize::new(200).unwrap(),
NonZeroUsize::new(500).unwrap(),
prefix_integer_docids_sorter,
b"pid",
SLED_DB.clone(),