Diffusion KMail ec5c3703fcaf

SearchDialog: improve performance by caching collection full paths.

Authored by dfaure on Apr 9 2017, 3:27 PM.

Description

SearchDialog: improve performance by caching collection full paths.

Finding out the full path is a very slow operation because we must locate
the index of the collection in the big ETM, and this was done very often
since it's the sort column. No precise measurements, but gut feeling, for
displaying 3000 search results, is that it went from 30 seconds to 3.

Details

Committed
dfaureApr 9 2017, 3:29 PM
Parents
R206:0054d4e8efe6: Use QFileInfo::exists(...) static method
Branches
Unknown
Tags
Unknown