minor opt: avoid walking allterms if not needed: no stemlangs + stripchars
This commit is contained in:
parent
2e2eeb70fb
commit
af8b82332e
@ -45,6 +45,15 @@ bool createExpansionDbs(Xapian::WritableDatabase& wdb,
|
||||
|
||||
// Erase and recreate all the expansion groups
|
||||
|
||||
// If langs is empty and we don't need casediac expansion, then no need to
|
||||
// walk the big list
|
||||
if (langs.empty()) {
|
||||
#ifndef RCL_INDEX_STRIPCHARS
|
||||
if (o_index_stripchars)
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
// Stem dbs
|
||||
vector<XapWritableComputableSynFamMember> stemdbs;
|
||||
// Note: tried to make this to work with stack-allocated objects, couldn't.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user