notmuch/lib
David Bremner b6f144abe1 lib/n_d_remove_message: do not remove unique filename
It is wasteful to remove a filename term when the whole message
document is about to be removed from the database. Profiling with perf
shows this takes a significant portion of the time when cleaning up
removed files in the database.

The logic of n_d_remove_message becomes a bit more convoluted here in
order to make the change minimal.

It is possible that this function can be further optimized, since the
expansion of filename terms into filenames is probably not needed
here.
2023-07-22 07:15:59 -03:00
..
add-message.cc Merge branch 'release' 2021-05-22 09:34:55 -03:00
built-with.c rename built_with.sexpr_query to built_with.sexp_queries 2021-12-03 20:06:06 -04:00
config.cc lib: add config key INDEX_AS_TEXT 2023-04-02 19:21:37 -03:00
database-private.h lib: parse index.as_text 2023-04-02 19:22:36 -03:00
database.cc lib/n_d_remove_message: do not remove unique filename 2023-07-22 07:15:59 -03:00
directory.cc lib: run uncrustify 2021-03-13 08:45:34 -04:00
features.cc lib: run uncrustify 2021-03-13 08:45:34 -04:00
filenames.c lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
index.cc lib: index attachments with mime types matching index.as_text 2023-04-02 19:24:43 -03:00
indexopts.c lib: make indexopts pointers opaque 2021-10-23 09:48:39 -03:00
init.cc lib: make glib initialization thread-safe 2021-05-13 22:21:57 -03:00
lastmod-fp.cc lib: add field processor for lastmod: prefix 2022-09-03 08:43:33 -03:00
lastmod-fp.h lib: add field processor for lastmod: prefix 2022-09-03 08:43:33 -03:00
Makefile fix sum moar typos [build scripts, Makefiles] 2011-06-23 15:44:59 -07:00
Makefile.local lib: factor out lastmod range handling from sexp parser. 2022-09-03 08:36:53 -03:00
message-file.c lib: consider all instances of Delivered-To header 2021-08-29 18:10:08 -07:00
message-id.c lib: run uncrustify 2019-06-14 07:41:27 -03:00
message-private.h lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
message-property.cc lib/message-property: sync removed properties to the database 2023-03-30 08:01:09 -03:00
message.cc lib/message: check message type before deleting document 2023-07-22 07:11:46 -03:00
messages.c lib: run uncrustify 2019-06-14 07:41:27 -03:00
notmuch-private.h lib: index attachments with mime types matching index.as_text 2023-04-02 19:24:43 -03:00
notmuch.h doc/lib: clarify ownership for notmuch_database_get_revision 2023-07-09 12:08:28 -03:00
notmuch.sym build: switch to hiding libnotmuch symbols by default 2017-05-12 07:17:18 -03:00
open.cc lib: parse index.as_text 2023-04-02 19:22:36 -03:00
parse-sexp.cc lib: factor out lastmod range handling from sexp parser. 2022-09-03 08:36:53 -03:00
parse-time-vrp.cc lib/date: factor out date range parsing. 2022-01-26 07:41:02 -04:00
parse-time-vrp.h lib: migrate from Xapian ValueRangeProcessor to RangeProcessor 2020-07-11 17:20:09 -03:00
prefix.cc lib: add sexp: prefix to Xapian (infix) query parser. 2022-04-15 08:25:46 -03:00
query-fp.cc lib: factor out expansion of saved queries. 2021-09-04 17:07:19 -07:00
query-fp.h build: drop support for xapian versions less than 1.4 2020-04-23 21:28:45 -03:00
query.cc lib: replace some uses of Query::MatchAll with a thread-safe alternative 2023-03-31 08:11:39 -03:00
regexp-fields.cc lib: replace some uses of Query::MatchAll with a thread-safe alternative 2023-03-31 08:11:39 -03:00
regexp-fields.h lib: factor out query construction from regexp 2021-09-04 17:07:19 -07:00
sexp-fp.cc fix build without sfsexp 2022-04-15 14:17:31 -03:00
sexp-fp.h lib: add sexp: prefix to Xapian (infix) query parser. 2022-04-15 08:25:46 -03:00
sha1.c lib: run uncrustify 2019-06-14 07:41:27 -03:00
string-list.c lib: run uncrustify 2019-06-14 07:41:27 -03:00
string-map.c lib: run uncrustify 2021-03-13 08:45:34 -04:00
tags.c lib/tag: handle NULL argument to notmuch_tags_valid 2022-06-25 16:05:45 -03:00
thread-fp.cc lib/thread-fp: factor out query expansion, rewrite in Xapian 2021-09-04 17:07:19 -07:00
thread-fp.h build: drop support for xapian versions less than 1.4 2020-04-23 21:28:45 -03:00
thread.cc lib/thread: add common prefix to debug messages, join lines 2021-05-23 08:01:38 -03:00