notmuch/lib
David Bremner 97939170b3 n_m_remove_indexed_terms: reduce number of Xapian API calls.
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.

According to the performance test suite, this yields a roughly 40%
speedup on "notmuch reindex '*'"
2019-05-23 08:00:56 -03:00
..
add-message.cc lib: change parent strategy to use In-Reply-To if it looks sane 2018-09-06 08:07:13 -03:00
built-with.c gmime-cleanup: always support session keys 2019-05-03 06:55:32 -03:00
config.cc lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
database-private.h lib: add 'body:' field, stop indexing headers twice. 2019-04-17 08:48:16 -03:00
database.cc gmime-cleanup: drop unused gmime #defines and simplify g_mime_init () 2019-05-03 06:56:58 -03:00
directory.cc lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
filenames.c lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
index.cc gmime-cleanup: use GMime 3.0 function names 2019-05-03 06:57:16 -03:00
indexopts.c crypto: add --decrypt=nostash to avoid stashing session keys 2017-12-08 08:08:47 -04:00
Makefile fix sum moar typos [build scripts, Makefiles] 2011-06-23 15:44:59 -07:00
Makefile.local lib: add thread subqueries. 2018-05-07 08:42:53 -03:00
message-file.c lib/message-file: close stream in destructor 2019-05-10 12:26:50 -03:00
message-id.c lib: add _notmuch_message_id_parse_strict 2018-09-06 08:07:13 -03:00
message-private.h lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
message-property.cc properties: add notmuch_message_count_properties 2018-05-26 07:31:39 -07:00
message.cc n_m_remove_indexed_terms: reduce number of Xapian API calls. 2019-05-23 08:00:56 -03:00
messages.c lib/thread: change _resolve_thread_relationships to use depths 2018-09-06 08:07:13 -03:00
notmuch-private.h lib: add _notmuch_message_id_parse_strict 2018-09-06 08:07:13 -03:00
notmuch.h docs: Use correct call to notmuch_query_search_threads in usage example 2019-01-25 20:51:00 -04:00
notmuch.sym build: switch to hiding libnotmuch symbols by default 2017-05-12 07:17:18 -03:00
parse-time-vrp.cc Use https instead of http where possible 2016-06-05 08:32:17 -03:00
parse-time-vrp.h Use https instead of http where possible 2016-06-05 08:32:17 -03:00
query-fp.cc Use https instead of http where possible 2016-06-05 08:32:17 -03:00
query-fp.h Use https instead of http where possible 2016-06-05 08:32:17 -03:00
query.cc lib: work around xapian bug with get_mset(0,0, x) 2018-04-26 22:14:59 -03:00
regexp-fields.cc lib: use phrase search for anything not ending in '*' 2019-03-28 14:34:37 -03:00
regexp-fields.h lib: Add regexp searching for mid: prefix 2017-05-09 07:44:15 -03:00
sha1.c lib: use glib for sha1 digests instead of embedding libsha1 2017-01-08 10:50:38 -04:00
string-list.c lib: add notmuch_message_count_files 2017-08-01 21:17:47 -04:00
string-map.c lib/string_map: fix return type of string_cmp 2019-03-05 21:46:41 -04:00
tags.c Use https instead of http where possible 2016-06-05 08:32:17 -03:00
thread-fp.cc lib: define specialized get_thread_id for use in thread subquery 2018-05-07 08:42:53 -03:00
thread-fp.h lib: add thread subqueries. 2018-05-07 08:42:53 -03:00
thread.cc gmime-cleanup: pass NULL arguments explicitly where GMime 3.0 expects it 2019-05-03 06:57:27 -03:00