aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-08-16 12:06:29 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-08-16 12:06:29 +0000
commit1f97c8c7a45eaf4823354645eba3718ff3d1c264 (patch)
tree43fcf99c7d2b12cf7928507b58ce7eb13637e918 /vespalib
parent4324d883cbd8fe08a919d776772052c4e2fef297 (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.h1
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;