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 = let mut cached_facet_number_docids_sorter =
SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new( SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
NonZeroUsize::new(20).unwrap(), NonZeroUsize::new(500).unwrap(),
facet_number_docids_sorter, facet_number_docids_sorter,
b"fnd", b"fnd",
super::SLED_DB.clone(), 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 = let mut cached_facet_string_docids_sorter =
SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new( SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
NonZeroUsize::new(200).unwrap(), NonZeroUsize::new(500).unwrap(),
facet_string_docids_sorter, facet_string_docids_sorter,
b"fsd", b"fsd",
SLED_DB.clone(), 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 = let mut cached_fid_word_count_docids_sorter =
SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new( SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
NonZeroUsize::new(300).unwrap(), NonZeroUsize::new(500).unwrap(),
fid_word_count_docids_sorter, fid_word_count_docids_sorter,
b"fwc", b"fwc",
super::SLED_DB.clone(), 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), max_memory.map(|m| m / 3),
); );
let mut cached_word_fid_docids_sorter = SorterCacheDelAddCboRoaringBitmap::<20, _>::new( let mut cached_word_fid_docids_sorter = SorterCacheDelAddCboRoaringBitmap::<20, _>::new(
NonZeroUsize::new(300).unwrap(), NonZeroUsize::new(500).unwrap(),
word_fid_docids_sorter, word_fid_docids_sorter,
b"wfd", b"wfd",
SLED_DB.clone(), SLED_DB.clone(),
@ -111,7 +111,7 @@ pub fn extract_word_docids<R: io::Read + io::Seek>(
max_memory.map(|m| m / 3), max_memory.map(|m| m / 3),
); );
let mut cached_word_docids_sorter = SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new( let mut cached_word_docids_sorter = SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
NonZeroUsize::new(100).unwrap(), NonZeroUsize::new(500).unwrap(),
word_docids_sorter, word_docids_sorter,
b"wdi", b"wdi",
SLED_DB.clone(), SLED_DB.clone(),
@ -126,7 +126,7 @@ pub fn extract_word_docids<R: io::Read + io::Seek>(
max_memory.map(|m| m / 3), max_memory.map(|m| m / 3),
); );
let mut cached_exact_word_docids_sorter = SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new( let mut cached_exact_word_docids_sorter = SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
NonZeroUsize::new(100).unwrap(), NonZeroUsize::new(500).unwrap(),
exact_word_docids_sorter, exact_word_docids_sorter,
b"ewd", b"ewd",
SLED_DB.clone(), 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), max_memory.map(|m| m / MAX_DISTANCE as usize),
); );
SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new( SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
NonZeroUsize::new(100).unwrap(), NonZeroUsize::new(500).unwrap(),
sorter, sorter,
b"wpp", b"wpp",
super::SLED_DB.clone(), 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 = let mut cached_word_position_docids_sorter =
SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new( SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
NonZeroUsize::new(300).unwrap(), NonZeroUsize::new(500).unwrap(),
word_position_docids_sorter, word_position_docids_sorter,
b"wpd", b"wpd",
super::SLED_DB.clone(), super::SLED_DB.clone(),

View File

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

View File

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