diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-06-04 16:59:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-04 16:59:41 +0200 |
commit | e304fe27f449fae9cb71d5c969e662e601e61d2b (patch) | |
tree | 810ae8989030055b3cea65c684f69c0cfbd404b5 /searchlib/src | |
parent | 78c31f071b1ee2e7c2dbef221a653178e626d635 (diff) | |
parent | 02a52fc34a0efeb518ceadcd9ae091f01f66455f (diff) |
Merge pull request #18134 from vespa-engine/toregge/use-larger-buffers-for-link-arrays
Use larger buffers for link arrays (and level arrays).
Diffstat (limited to 'searchlib/src')
-rw-r--r-- | searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp | 2 |
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; |