aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2021-06-04 16:40:54 +0200
committerTor Egge <Tor.Egge@online.no>2021-06-04 16:43:37 +0200
commit02a52fc34a0efeb518ceadcd9ae091f01f66455f (patch)
tree2acedaee956038af192d7d7369ff8e86b3cb587a /searchlib
parent30fde50db70ee02af21c1d2f92096a76a475da1c (diff)
Use larger buffers for link arrays (and level arrays).
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp2
1 files changed, 1 insertions, 1 deletions
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;