notmuch restore: Don't waste time with messages with unchanged tags.
authorCarl Worth <cworth@cworth.org>
Sat, 6 Feb 2010 01:29:56 +0000 (17:29 -0800)
committerCarl Worth <cworth@cworth.org>
Sat, 6 Feb 2010 01:29:56 +0000 (17:29 -0800)
commit069cb5a73ac2487930baa75a9cd2850968361a16
tree45c14a742e5259119557029c793b06f210bb7f55
parentef8a74944c41f7599d9de6c73f462dfd122ec0fe
notmuch restore: Don't waste time with messages with unchanged tags.

It's a simple optimization to look at a message and check that the
existing tags are actually different than the tags we are setting
before we do anything.

For my mail store this takes a "notmuch restore" that does nothing
from about 10 minutes down to 1 minute, so there's a significant
speedup here.
notmuch-restore.c