diff options
author | HÃ¥vard Pettersen <3535158+havardpe@users.noreply.github.com> | 2022-02-09 10:19:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-09 10:19:24 +0100 |
commit | 6d15a9668c566483e2e169701db1231897f9e407 (patch) | |
tree | a5be52733c7d9726453c36abd557f35a40ac7643 | |
parent | 2676100e8719b5605017df1700f9e45073219a87 (diff) | |
parent | 688e2b2ad7920cd1f8f3a7a308b2136f8a9cf8ca (diff) |
Merge pull request #21111 from vespa-engine/balder/use-mmap-for-large-vectors-2
Use mmap automatically for large vectors.
-rw-r--r-- | vespalib/src/vespa/vespalib/data/slime/array_value.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/data/slime/array_value.h b/vespalib/src/vespa/vespalib/data/slime/array_value.h index b1b257e8476..216d116498c 100644 --- a/vespalib/src/vespa/vespalib/data/slime/array_value.h +++ b/vespalib/src/vespa/vespalib/data/slime/array_value.h @@ -5,6 +5,7 @@ #include "value.h" #include "nix_value.h" #include "value_factory.h" +#include <vespa/vespalib/stllike/allocator.h> #include <vector> namespace vespalib::slime { @@ -18,7 +19,7 @@ class ArrayValue final : public Value private: SymbolTable &_symbolTable; Stash &_stash; - std::vector<Value*> _values; + std::vector<Value*, vespalib::allocator_large<Value*>> _values; protected: Cursor &addLeaf(const ValueFactory &input) override { |