From b3a22f31f6d8b87110a7ef330223b31c7eadcb20 Mon Sep 17 00:00:00 2001 From: many Date: Mon, 30 Aug 2021 13:43:41 +0200 Subject: [PATCH] Fix memory consuption in word pair proximity extractor --- .../extract/extract_word_pair_proximity_docids.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 96bd965d8..ce75c319e 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 @@ -29,7 +29,7 @@ pub fn extract_word_pair_proximity_docids( indexer.chunk_compression_type, indexer.chunk_compression_level, indexer.max_nb_chunks, - max_memory, + max_memory.map(|m| m / 2), ); let mut number_of_documents = 0;