MSet::get_eset(): Be lazier
commit8dc6f72354d733db17fa564bfb5db51090a8adc3
authorOlly Betts <olly@survex.com>
Tue, 5 Dec 2023 04:02:09 +0000 (5 17:02 +1300)
committerOlly Betts <olly@survex.com>
Tue, 5 Dec 2023 04:20:53 +0000 (5 17:20 +1300)
tree80594585ba7667ae1041dab91b4455218ddf842c
parent53d0c3a6d0f66b7476e81cbf3f0fba929a5d50e0
MSet::get_eset(): Be lazier

Don't fetch the collection frequency for each term unless we're
using the Bo1EWeight expansion scheme which actually needs it.

In a simple test this reduced the time taken to do a search and
generate expand terms by a third.

Partly addresses #264.
xapian-core/expand/expandweight.cc
xapian-core/expand/expandweight.h