diff options
| author | David Bremner <david@tethera.net> | 2018-01-27 22:50:42 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2018-05-07 08:42:53 -0300 |
| commit | f0131af6c59704e29d58eb74ed5e4bc298455272 (patch) | |
| tree | 83cfcee082a013335e9850fe1fad99c36be49c63 /lib/thread-fp.cc | |
| parent | 60fcec82d2a8041ba3ee9fc6413cd404659e38dc (diff) | |
lib: define specialized get_thread_id for use in thread subquery
The observation is that we are only using the messages to get there
thread_id, which is kindof a pessimal access pattern for the current
notmuch_message_get_thread_id
Diffstat (limited to 'lib/thread-fp.cc')
| -rw-r--r-- | lib/thread-fp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thread-fp.cc b/lib/thread-fp.cc index 75339ffa..73277006 100644 --- a/lib/thread-fp.cc +++ b/lib/thread-fp.cc @@ -52,7 +52,7 @@ ThreadFieldProcessor::operator() (const std::string & str) std::string term = thread_prefix; notmuch_message_t *message; message = notmuch_messages_get (messages); - term += notmuch_message_get_thread_id (message); + term += _notmuch_message_get_thread_id_only (message); terms.insert (term); } return Xapian::Query (Xapian::Query::OP_OR, terms.begin (), terms.end ()); |
