summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-05-29 19:39:00 +0200
committerHenning Baldersheim <balder@oath.com>2018-05-29 19:39:00 +0200
commita5d1363d2c42a1ffb4e7226aa03c4df630be7a8b (patch)
tree45fb0fb8223af7bed4b57ab8a4849dfaea7c82c4 /searchcore
parent7777de42fe5089a2a76bcbb298ae4f1029e9bf8f (diff)
No allocation of matchdata for SameElement's children.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/matching/matchdatareservevisitor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/matchdatareservevisitor.h b/searchcore/src/vespa/searchcore/proton/matching/matchdatareservevisitor.h
index ebe4e9b2ad7..a20f648ca1c 100644
--- a/searchcore/src/vespa/searchcore/proton/matching/matchdatareservevisitor.h
+++ b/searchcore/src/vespa/searchcore/proton/matching/matchdatareservevisitor.h
@@ -22,13 +22,14 @@ public:
template <class TermNode>
void visitTerm(TermNode &n) { n.allocateTerms(_mdl); }
- virtual void visit(ProtonNodeTypes::Equiv &n) override {
+ void visit(ProtonNodeTypes::Equiv &n) override {
MatchDataReserveVisitor subAllocator(n.children_mdl);
for (size_t i = 0; i < n.getChildren().size(); ++i) {
n.getChildren()[i]->accept(subAllocator);
}
n.allocateTerms(_mdl);
}
+ void visit(ProtonNodeTypes::SameElement &) override { }
MatchDataReserveVisitor(search::fef::MatchDataLayout &mdl) : _mdl(mdl) {}
};