From 02a52fc34a0efeb518ceadcd9ae091f01f66455f Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Fri, 4 Jun 2021 16:40:54 +0200 Subject: Use larger buffers for link arrays (and level arrays). --- searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searchlib') diff --git a/searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp b/searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp index 31ff3845d74..465793739ff 100644 --- a/searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp +++ b/searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp @@ -25,7 +25,7 @@ namespace { // TODO: Move this to MemoryAllocator, with name PAGE_SIZE. constexpr size_t small_page_size = 4_Ki; -constexpr size_t min_num_arrays_for_new_buffer = 8_Ki; +constexpr size_t min_num_arrays_for_new_buffer = 64_Ki; constexpr float alloc_grow_factor = 0.2; // TODO: Adjust these numbers to what we accept as max in config. constexpr size_t max_level_array_size = 16; -- cgit v1.2.3