summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2019-08-29 15:42:27 +0000
committerGeir Storli <geirst@verizonmedia.com>2019-09-02 08:57:40 +0000
commit94ab377491f19e0b4ea80201eb0340d6e4ee55b2 (patch)
tree78e4d337a6805a958fcb5b294d4bff7ddc17c9d3 /searchcore
parent9fad146519a83d29a4d7e0c539f923c322600d10 (diff)
Improve memory management in all enum attributes.
The new enum store uses 1024 small data buffers instead of 2 large as before. This avoids the problem with memory spikes when the active buffer was full and all values had to be compacted into the other buffer. In addition the new enum store uses free lists such that compaction is not needed as often.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp b/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp
index a1d5f72bc9d..5a199c529b6 100644
--- a/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp
+++ b/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp
@@ -77,8 +77,8 @@ void
convertEnumStoreToSlime(const IEnumStore &enumStore, Cursor &object)
{
object.setLong("numUniques", enumStore.getNumUniques());
- convertMemoryUsageToSlime(enumStore.getMemoryUsage(), object.setObject("memoryUsage"));
- convertMemoryUsageToSlime(enumStore.getTreeMemoryUsage(), object.setObject("treeMemoryUsage"));
+ convertMemoryUsageToSlime(enumStore.getValuesMemoryUsage(), object.setObject("valuesMemoryUsage"));
+ convertMemoryUsageToSlime(enumStore.getDictionaryMemoryUsage(), object.setObject("dictionaryMemoryUsage"));
}
void