D7916: Introduce MimeTypeChecker::hasWantedMimeTypes
Milian Wolff
noreply at phabricator.kde.org
Thu Sep 21 15:54:32 BST 2017
mwolff created this revision.
Restricted Application added a project: KDE PIM.
Restricted Application added a subscriber: KDE PIM.
REVISION SUMMARY
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.
REPOSITORY
R165 Akonadi
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D7916
AFFECTED FILES
autotests/libs/mimetypecheckertest.cpp
src/core/mimetypechecker.cpp
src/core/mimetypechecker.h
src/core/models/entitytreemodel_p.cpp
To: mwolff
Cc: #kde_pim, dvasin, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20170921/29b0653a/attachment.html>
More information about the kde-pim
mailing list