[kdepimlibs] [Bug 346644] KF5/KMail Performance Bottleneck in Akonadi::StatisticsProxyModel::data(...)

Daniel Vrátil dvratil at redhat.com
Thu May 14 14:06:58 BST 2015


https://bugs.kde.org/show_bug.cgi?id=346644

--- Comment #9 from Daniel Vrátil <dvratil at redhat.com> ---
Git commit d18a3173144014ec0b19ad8466684d69534351a8 by Dan Vrátil.
Committed on 14/05/2015 at 13:06.
Pushed by dvratil into branch 'master'.

Add the QIcon::fromTheme() workaround to ETM

Workaroud the very slow QIcon::fromTheme() directly in ETM, which gives us the
cache for free for both Collections and Items. The cache is really small (not
more than 10 icons) so we can afford to have it all the way down in ETM.

Also adjusted StatisticsProxyModel to call ETM::data() for DecorationRole
instead of trying to resolve the icon on its own.

M  +5    -3    akonadi/src/core/models/entitytreemodel.cpp
M  +15   -0    akonadi/src/core/models/entitytreemodel_p.cpp
M  +6    -0    akonadi/src/core/models/entitytreemodel_p.h
M  +1    -5    akonadi/src/core/models/statisticsproxymodel.cpp

http://commits.kde.org/kdepimlibs/d18a3173144014ec0b19ad8466684d69534351a8

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list