]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-storage: Optimize behavior when building THREAD tree with empty cache
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 19 Apr 2021 16:48:09 +0000 (18:48 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 26 Nov 2021 10:59:20 +0000 (10:59 +0000)
commit21880fac089c11b5f81ba09b2ba8e10bfdf4e0a6
tree96426cdd8cb1ab8a9dcfc012713579ef046611ef
parent8abebfe9a423aa27b228a9c9a51f0ed1682c4336
lib-storage: Optimize behavior when building THREAD tree with empty cache

Although it's possible that Date, Subject or received-date isn't actually
needed for all mails, it's much more efficient behavior to add all of these
to cache at the same time if they're not there already. Otherwise the same
mail could be opened and parsed up to 3 times.
src/lib-storage/index/index-thread.c