Introduce MimeTypeChecker::hasWantedMimeTypes

Authored by mwolff on Sep 22 2017, 7:10 PM.

Description

Introduce MimeTypeChecker::hasWantedMimeTypes

This allows us to skip the slow MimeTypeChecker::wantedMimeTypes
call, which allocates a QStringList on every call. This removes
~200k temporary allocations that I see in one heaptrack file for
kmail.

Reviewed By: dvratil
Differential Revision: https://phabricator.kde.org/D7916

Details

Committed
mwolffSep 22 2017, 7:11 PM
Reviewer
dvratil
Differential Revision
D7916: Introduce MimeTypeChecker::hasWantedMimeTypes
Parents
R165:b145f47f0009: Only remove init connections to the database on server shutdown.
Branches
Unknown
Tags
Unknown