From: Carl Worth Date: Wed, 6 Jan 2010 00:42:14 +0000 (-0800) Subject: add_files_recursive: Make the maildir detection more efficient. X-Git-Tag: 0.1~172 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=2a98b1d48795e66754435e06e28cdf58ab1dd154;hp=2a98b1d48795e66754435e06e28cdf58ab1dd154;ds=sidebyside add_files_recursive: Make the maildir detection more efficient. Previously, we were re-scanning the entire list of entries for every directory entry. Instead, we can simply check if the entries look like a maildir once, up-front. ---