From 6264dbf3260042e5cb25f9b57e21b5973a4b64a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Sun, 21 Jul 2024 23:08:11 +0200 Subject: [PATCH] Increase the ARCache to 500 entries --- .../index_documents/extract/extract_facet_number_docids.rs | 2 +- .../index_documents/extract/extract_facet_string_docids.rs | 2 +- .../extract/extract_fid_word_count_docids.rs | 2 +- .../update/index_documents/extract/extract_word_docids.rs | 6 +++--- .../extract/extract_word_pair_proximity_docids.rs | 2 +- .../index_documents/extract/extract_word_position_docids.rs | 2 +- milli/src/update/word_prefix_docids.rs | 2 +- milli/src/update/words_prefix_integer_docids.rs | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/milli/src/update/index_documents/extract/extract_facet_number_docids.rs b/milli/src/update/index_documents/extract/extract_facet_number_docids.rs index dd71c5b36..b2e5a0a4a 100644 --- a/milli/src/update/index_documents/extract/extract_facet_number_docids.rs +++ b/milli/src/update/index_documents/extract/extract_facet_number_docids.rs @@ -38,7 +38,7 @@ pub fn extract_facet_number_docids( ); 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(), diff --git a/milli/src/update/index_documents/extract/extract_facet_string_docids.rs b/milli/src/update/index_documents/extract/extract_facet_string_docids.rs index 8adfd6ae0..043c3de9b 100644 --- a/milli/src/update/index_documents/extract/extract_facet_string_docids.rs +++ b/milli/src/update/index_documents/extract/extract_facet_string_docids.rs @@ -46,7 +46,7 @@ pub fn extract_facet_string_docids( ); 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(), diff --git a/milli/src/update/index_documents/extract/extract_fid_word_count_docids.rs b/milli/src/update/index_documents/extract/extract_fid_word_count_docids.rs index 863a6ea21..768db7225 100644 --- a/milli/src/update/index_documents/extract/extract_fid_word_count_docids.rs +++ b/milli/src/update/index_documents/extract/extract_fid_word_count_docids.rs @@ -41,7 +41,7 @@ pub fn extract_fid_word_count_docids( ); 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(), diff --git a/milli/src/update/index_documents/extract/extract_word_docids.rs b/milli/src/update/index_documents/extract/extract_word_docids.rs index 1e38706f2..36b04e87f 100644 --- a/milli/src/update/index_documents/extract/extract_word_docids.rs +++ b/milli/src/update/index_documents/extract/extract_word_docids.rs @@ -50,7 +50,7 @@ pub fn extract_word_docids( 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( 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( 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(), diff --git a/milli/src/update/index_documents/extract/extract_word_pair_proximity_docids.rs b/milli/src/update/index_documents/extract/extract_word_pair_proximity_docids.rs index 0af75cf70..43f377153 100644 --- a/milli/src/update/index_documents/extract/extract_word_pair_proximity_docids.rs +++ b/milli/src/update/index_documents/extract/extract_word_pair_proximity_docids.rs @@ -53,7 +53,7 @@ pub fn extract_word_pair_proximity_docids( 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(), diff --git a/milli/src/update/index_documents/extract/extract_word_position_docids.rs b/milli/src/update/index_documents/extract/extract_word_position_docids.rs index d85df886f..679196e32 100644 --- a/milli/src/update/index_documents/extract/extract_word_position_docids.rs +++ b/milli/src/update/index_documents/extract/extract_word_position_docids.rs @@ -39,7 +39,7 @@ pub fn extract_word_position_docids( ); 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(), diff --git a/milli/src/update/word_prefix_docids.rs b/milli/src/update/word_prefix_docids.rs index 8fa70dbcf..9fb5c8585 100644 --- a/milli/src/update/word_prefix_docids.rs +++ b/milli/src/update/word_prefix_docids.rs @@ -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(), diff --git a/milli/src/update/words_prefix_integer_docids.rs b/milli/src/update/words_prefix_integer_docids.rs index 088069b45..bef95155d 100644 --- a/milli/src/update/words_prefix_integer_docids.rs +++ b/milli/src/update/words_prefix_integer_docids.rs @@ -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(),