State of mmap for icon cache

David Faure faure at kde.org
Wed Jun 25 09:43:07 BST 2008


On Tuesday 17 June 2008, Andreas Pakulat wrote:
>  it seems that
> for him icons are read from disk over and over again (i.e. no caching at
> all as it seems).

I'm surprised by this, because even if the mmap stuff doesn't work, KPixmapCache
uses QPixmapCache too, so it should get icons from memory and not from disk -
that is, unless loadIcon() is called with QString* path_store not being null. You might
want to check if that's the case. But this is a bit orthogonal to the mmap question,
I was just surprised that the in-memory cache would be used -- and then found out
in the code that it's not used if the path to the icon is needed.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list