[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [kdepimlibs] [Bug 346644] KF5/KMail Performance Bottleneck in  Akonadi::StatisticsProxyModel::data(.
From:       Daniel Vrátil <dvratil () redhat ! com>
Date:       2015-05-14 13:06:58
Message-ID: bug-346644-17878-3E5EvpTMcM () http ! bugs ! kde ! org/
[Download RAW message or body]

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

--- Comment #9 from Daniel Vrátil <dvratil@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 watching all bug changes.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic