[PATCH 2/2] n_m_remove_indexed_terms: reduce number of Xapian API calls.

David Bremner david at tethera.net
Thu May 23 04:40:29 PDT 2019


David Bremner <david at tethera.net> writes:

> Previously this functioned scanned every term attached to a given
> Xapian document. It turns out we know how to read only the terms we
> need to preserve (and we might have already done so). This commit
> replaces many calls to Xapian::Document::remove_term with one call to
> ::clear_terms, and a (typically much smaller) number of calls to
> ::add_term. Roughly speaking this is based on the assumption that most
> messages have more text than they have tags.

pushed to master.

d


More information about the notmuch mailing list