On Sat, 21 Nov 2009 23:46:44 +0100, Carl Worth <cworth@cworth.org> wrote: > So some investigation is needed to see how important that optimization > is, and if it's important to see whether there's another way to keep the > performance while being able to support renames. (Or alternately, > allowing the user to configure an option saying, "I need to support > renames even if that means that notmuch new is a bit slower."). I'd suggest that the best way to make this more efficient would be to capture directory contents (along with the directory mtime) and use that to detect changes. If we assume that mail messages are never changed, we could use that to avoid stat'ing files in directories too. -- keith.packard@intel.com