diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-01-15 06:10:55 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-01-16 10:48:07 +0000 |
commit | f4ca1a66486f7e10f507b0c8054e403c7ff9c125 (patch) | |
tree | e509b81c89fb2f9eb5fdefaf79a6ebbde7a6444f /storage | |
parent | b324c19e007a7a57ba731ed72a01d35cd6937ed7 (diff) |
Remove and indirection for document id, for less memory footprint, and better generated code.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/src/vespa/storage/visiting/countvisitor.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/storage/src/vespa/storage/visiting/countvisitor.cpp b/storage/src/vespa/storage/visiting/countvisitor.cpp index a9ebe7e452a..f00b333581e 100644 --- a/storage/src/vespa/storage/visiting/countvisitor.cpp +++ b/storage/src/vespa/storage/visiting/countvisitor.cpp @@ -46,18 +46,10 @@ CountVisitor::handleDocuments(const document::BucketId& /*bucketId*/, _groupCount[idString.getGroup()]++; } - switch (idString.getType()) { - case document::IdString::ID: - if (_doScheme) { - _schemeCount["id"]++; - } - break; - case document::IdString::NULLID: - if (_doScheme) { - _schemeCount["null"]++; - } - break; + if (_doScheme) { + _schemeCount["id"]++; } + } } } |