Optimise allterms next() for terms without nuls
commit5332e4bd1e8d3b8bad42e5af059318829f44a2a3
authorOlly Betts <olly@survex.com>
Fri, 8 Dec 2023 05:54:01 +0000 (8 18:54 +1300)
committerOlly Betts <olly@survex.com>
Fri, 8 Dec 2023 05:54:01 +0000 (8 18:54 +1300)
treeaa47ff61d126edb14ec637685096a7462ae471da
parent565d1f9ca102cbd92c35e459bd4c403b85dd1fe1
Optimise allterms next() for terms without nuls

Most terms don't contain any nuls, and for such terms the key for the
first chunk in the termlist table is just the termname so we don't
need to do any decoding in allterms next().  This seems to be ~8.4%
faster in a simple test of iterating allterms via xapian-delve.
xapian-core/backends/glass/glass_alltermslist.cc
xapian-core/backends/honey/honey_alltermslist.cc