diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-08-16 12:06:29 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-08-16 12:06:29 +0000 |
commit | 1f97c8c7a45eaf4823354645eba3718ff3d1c264 (patch) | |
tree | 43fcf99c7d2b12cf7928507b58ce7eb13637e918 /vespalib | |
parent | 4324d883cbd8fe08a919d776772052c4e2fef297 (diff) |
Instead of having one large array of individually allocated vectors use
2 large, optionally mmapped, vectors where the first just points into the second.
In order to avoid resizing, count first.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/stllike/allocator.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/stllike/allocator.h b/vespalib/src/vespa/vespalib/stllike/allocator.h index 0a890973e09..70d8f435286 100644 --- a/vespalib/src/vespa/vespalib/stllike/allocator.h +++ b/vespalib/src/vespa/vespalib/stllike/allocator.h @@ -13,7 +13,6 @@ namespace vespalib { */ template <typename T> class allocator_large { - using PtrAndSize = alloc::MemoryAllocator::PtrAndSize; public: allocator_large() noexcept : _allocator(alloc::MemoryAllocator::select_allocator()) {} using value_type = T; |