summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-10-18 05:08:33 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-10-18 05:08:33 +0000
commit393ca17fb82e3e39721d169748d3e40c4e411844 (patch)
tree77cc5ce34dbd0932083338a4a11c3c6c244440c1
parent13bc850495a54b1fe4cc3600cb735858b7155986 (diff)
Small array is most likely.
-rw-r--r--vespalib/src/vespa/vespalib/datastore/array_store.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/datastore/array_store.h b/vespalib/src/vespa/vespalib/datastore/array_store.h
index 48f61660cb3..b847f3a5985 100644
--- a/vespalib/src/vespa/vespalib/datastore/array_store.h
+++ b/vespalib/src/vespa/vespalib/datastore/array_store.h
@@ -75,7 +75,7 @@ public:
}
RefT internalRef(ref);
uint32_t typeId = _store.getTypeId(internalRef.bufferId());
- if (typeId != _largeArrayTypeId) {
+ if (typeId != _largeArrayTypeId) [[likely]] {
size_t arraySize = _mapper.get_array_size(typeId);
return getSmallArray(internalRef, arraySize);
} else {