Simplify OrTermList
commite492dc7bc0009660b689c079b3cb10aadba84b03
authorOlly Betts <olly@survex.com>
Fri, 8 Dec 2023 19:22:07 +0000 (9 08:22 +1300)
committerOlly Betts <olly@survex.com>
Fri, 8 Dec 2023 19:22:07 +0000 (9 08:22 +1300)
tree8f5cf29a7a53088caa3096ca484ba01602e7d47d
parent5332e4bd1e8d3b8bad42e5af059318829f44a2a3
Simplify OrTermList

Don't cache the current termnames in left_current and right_current
since reading the termname from a child now just gives a const reference
and so is cheap.  Instead store the result of std::string::compare() on
the two current children, which avoids the cost of re-computing this.
xapian-core/expand/ortermlist.cc
xapian-core/expand/ortermlist.h