Skip to content
Commit 5166c59a authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Workaround an extrem performance regression in QIcon::fromTheme()

QIcon::fromTheme() calls (in KDE at least) code from FrameworkIntegration plugin,
which does lots and lots of stat() calls just to find proper size of the icon.
This makes the call extremly slow and KMail's collection view extremly sluggish.

To workaround the problem temporarily, we cache the icons in CollectionModel
(it's only a few icons so the cache has only a very small memory footprint.

CCBUG: 346644
parent 71b85c4d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment