KIconLoader: speed up hasIcon/iconPath by using the on-disk cache from loadIcon

Review Request #124811 - Created Aug. 19, 2015 and discarded

Information
David Faure
kiconthemes
master
Reviewers
kdeframeworks
cfeck
This makes QIcon::fromTheme() much faster, for all cases where we have loaded the
icon once before (including in another process).

The unittest has a way to see if KIconLoader used the cache or searched on disk, with the newly exported global int. I couldn't think of a better way.

I'll let Volker do the real-world testing and measure the overall impact as he did previously.

Volker Krause
Mark Gaiser
Volker Krause
David Faure
Milian Wolff
Volker Krause
David Faure
Review request changed

Status: Discarded

Change Summary:

Well, if it doesn't make things any faster, no point in doing it, I guess ;-)

Loading...