[PATCH 0/3] Speed up notmuch new for unchanged directories

2012-07-05 Thread Sascha Silbe
Austin Clements writes: >> "notmuch new" needs to iterate over a list of all directories to find >> those with new mails (and potentially new subdirectories). However, it >> does not need to list the *contents* of those folders. I'm surprised as >> well, but rather in the opposite direction:

Re: [PATCH 0/3] Speed up notmuch new for unchanged directories

2012-07-05 Thread Sascha Silbe
Austin Clements amdra...@mit.edu writes: notmuch new needs to iterate over a list of all directories to find those with new mails (and potentially new subdirectories). However, it does not need to list the *contents* of those folders. I'm surprised as well, but rather in the opposite

[PATCH 0/3] Speed up notmuch new for unchanged directories

2012-06-26 Thread Sascha Silbe
Austin Clements writes: > On Sun, 24 Jun 2012, Sascha Silbe wrote: ["notmuch new" listing every directory, even if it's unchanged] > I haven't looked over your patches yet, but this result surprises me. > Could you explain your setup a little more? How much mail do you have > and across how

[PATCH 0/3] Speed up notmuch new for unchanged directories

2012-06-25 Thread Austin Clements
Quoth Sascha Silbe on Jun 26 at 12:13 am: > Austin Clements writes: > > On Sun, 24 Jun 2012, Sascha Silbe wrote: > > ["notmuch new" listing every directory, even if it's unchanged] > > I haven't looked over your patches yet, but this result surprises me. > > Could you explain your setup a

[PATCH 0/3] Speed up notmuch new for unchanged directories

2012-06-25 Thread Austin Clements
On Sun, 24 Jun 2012, Sascha Silbe wrote: > 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

Re: [PATCH 0/3] Speed up notmuch new for unchanged directories

2012-06-25 Thread Sascha Silbe
Austin Clements amdra...@mit.edu writes: On Sun, 24 Jun 2012, Sascha Silbe sascha-...@silbe.org wrote: [notmuch new listing every directory, even if it's unchanged] I haven't looked over your patches yet, but this result surprises me. Could you explain your setup a little more? How much mail

Re: [PATCH 0/3] Speed up notmuch new for unchanged directories

2012-06-25 Thread Austin Clements
Quoth Sascha Silbe on Jun 26 at 12:13 am: Austin Clements amdra...@mit.edu writes: On Sun, 24 Jun 2012, Sascha Silbe sascha-...@silbe.org wrote: [notmuch new listing every directory, even if it's unchanged] I haven't looked over your patches yet, but this result surprises me. Could you

[PATCH 0/3] Speed up notmuch new for unchanged directories

2012-06-24 Thread Sascha Silbe
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