]> git.notmuchmail.org Git - notmuch/commit
Add the file name list to the unified message metadata pass.
authorAustin Clements <amdragon@mit.edu>
Thu, 9 Dec 2010 03:19:55 +0000 (22:19 -0500)
committerAustin Clements <amdragon@mit.edu>
Mon, 21 Mar 2011 06:45:18 +0000 (02:45 -0400)
commitf271071330fed2947abfa7e9956a85a978924548
tree8fbabbd4677e08fb25451f8adc236df6a5d03f56
parent206938ec9b4ddee28793f2f052a5314d6d7ab08d
Add the file name list to the unified message metadata pass.

Even if the caller never uses the file names, there is little cost to
simply fetching the file name terms.  However, retrieving the full
paths requires additional database work, so the expansion from terms
to full paths is performed lazily.

This also simplifies clearing the filename cache, since that's now
handled by the generic metadata cache code.

This further reduces my inbox search from 3.102 seconds before the
unified metadata pass to 2.206 seconds (1.4X faster).
lib/message.cc