unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 0/3] Speed up notmuch new for unchanged directories
@ 2012-06-24 16:29 Sascha Silbe
  2012-06-24 16:29 ` [PATCH 1/3] lib: fix NULL checks for filenames iterators Sascha Silbe
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Sascha Silbe @ 2012-06-24 16:29 UTC (permalink / raw)
  To: notmuch

All the time I thought what makes "notmuch new" so abysmally slow is the
stat() for each maildir. But as it continued to be slow even after I
moved most mails out of 'new' (into 'new-20120624'), I strace'd notmuch
and noticed it listed even unchanged directories, thereby listing and
iterating over each and every single of the 900k mails in my mail store.

There's still quite some room for further improvements as it continues
to take several minutes to scan < 100 new mails in changed directories
containing < 1000 mails in total. Even the rsync run that fetches the
new mails is faster.

Sascha Silbe (3):
  lib: fix NULL checks for filenames iterators
  lib: add support for rewinding a filenames iterator
  new: don't read unchanged directories from disk

 lib/filenames.c |   15 ++++++-
 lib/notmuch.h   |    8 ++++
 notmuch-new.c   |  130 +++++++++++++++++++++++++++++++++++++++++--------------
 3 files changed, 119 insertions(+), 34 deletions(-)

-- 
1.7.10

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-10-16  0:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-24 16:29 [PATCH 0/3] Speed up notmuch new for unchanged directories Sascha Silbe
2012-06-24 16:29 ` [PATCH 1/3] lib: fix NULL checks for filenames iterators Sascha Silbe
2012-09-02  2:34   ` David Bremner
2012-06-24 16:29 ` [PATCH 2/3] lib: add support for rewinding a filenames iterator Sascha Silbe
2012-06-24 16:29 ` [PATCH 3/3] new: don't read unchanged directories from disk Sascha Silbe
2012-10-16  0:13   ` Ethan Glasser-Camp
2012-06-25 17:59 ` [PATCH 0/3] Speed up notmuch new for unchanged directories Austin Clements
2012-06-25 22:13   ` Sascha Silbe
2012-06-26  1:47     ` Austin Clements
2012-07-05  7:37       ` Sascha Silbe

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).