summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/memoryindex/compact_words_store
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@verizonmedia.com>2019-05-23 08:37:54 +0000
committerTor Brede Vekterli <vekterli@verizonmedia.com>2019-05-23 11:26:36 +0000
commit60b628f977102f905b67f23d765cf19e49fa21db (patch)
tree5e58abcb9cddb3385251a08a26d7b14e0f2167b1 /searchlib/src/tests/memoryindex/compact_words_store
parentbbc62a7d9f6a0ec4e0eaafff3213dfebc49898a8 (diff)
Move RcuVector and relevant support classes to vespalib
Having RCU support available across all our C++ modules open up new opportunities for optimizations. This changes the following: - `RcuVector` moved from `searchlib` to `vespalib` - `MemoryUsage` moved from `searchlib` to `vespalib` - Introduce a simplified, more generic `GrowStrategy` in `vespalib` used by the moved `RcuVector` which does not have any notion of documents. Existing searchlib `GrowStrategy` gets a simple function to convert to this generic strategy.
Diffstat (limited to 'searchlib/src/tests/memoryindex/compact_words_store')
-rw-r--r--searchlib/src/tests/memoryindex/compact_words_store/compact_words_store_test.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/searchlib/src/tests/memoryindex/compact_words_store/compact_words_store_test.cpp b/searchlib/src/tests/memoryindex/compact_words_store/compact_words_store_test.cpp
index 04d66396f90..a78e4dead86 100644
--- a/searchlib/src/tests/memoryindex/compact_words_store/compact_words_store_test.cpp
+++ b/searchlib/src/tests/memoryindex/compact_words_store/compact_words_store_test.cpp
@@ -11,6 +11,7 @@
using namespace search;
using namespace search::datastore;
using namespace search::memoryindex;
+using vespalib::MemoryUsage;
typedef CompactWordsStore::Builder Builder;
typedef CompactWordsStore::Iterator Iterator;