diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-08-31 12:27:59 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-08-31 12:30:34 +0000 |
commit | 2932130635e132c591f13aeb5dce8f9c6aac2a7c (patch) | |
tree | c4966a6b163ecc8418f5aa86c35a59eb6e07be21 /searchlib/src/tests/tensor | |
parent | fb84d303e6e1f4c434bafe44538dbf3689d3bddd (diff) |
Use an allocator that automagically allocates large buffer by using mmap.
Diffstat (limited to 'searchlib/src/tests/tensor')
-rw-r--r-- | searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp b/searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp index 9c896396de3..a5e0e1e2b6a 100644 --- a/searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp +++ b/searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp @@ -1,9 +1,7 @@ // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> -#include <stdio.h> +#include <cstdio> #include <unistd.h> #include <chrono> #include <cstdlib> @@ -24,6 +22,7 @@ #include <vespa/vespalib/util/blockingthreadstackexecutor.h> #include <vespa/vespalib/util/generationhandler.h> #include <vespa/vespalib/util/lambdatask.h> +#include <vespa/vespalib/data/simple_buffer.h> #include <vespa/log/log.h> LOG_SETUP("stress_hnsw_mt"); |