diff options
author | Henning Baldersheim <balder@oath.com> | 2018-05-29 19:39:00 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@oath.com> | 2018-05-29 19:39:00 +0200 |
commit | a5d1363d2c42a1ffb4e7226aa03c4df630be7a8b (patch) | |
tree | 45fb0fb8223af7bed4b57ab8a4849dfaea7c82c4 | |
parent | 7777de42fe5089a2a76bcbb298ae4f1029e9bf8f (diff) |
No allocation of matchdata for SameElement's children.
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/matching/matchdatareservevisitor.h | 3 |
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) {} }; |