State of mmap for icon cache

Hamish Rodda rodda at kde.org
Tue Jun 17 10:40:00 BST 2008


On Tuesday 17 June 2008 18:22:25 Andreas Pakulat wrote:
> Hi,
>
> I'd like to get a short overview of the current state of mmap support in
> our pixmap cache. Last I checked it was disabled due to bug #160284, did
> it get enabled again meanwhile?
>
> I just had a quick glance at kpixmapcache.cpp and it seems like it is
> enabled again. So could the fixes that have been done for the mmap'ing
> slow down icon loading that much? Because loading of icons has become
> quite slow in KDevelop, I notice it in our project tree which uses
> KIO::pixmapForUrl() or KIcon() constructor to load the icons. Another
> developer has serious problems with the code-completion, it seems that
> for him icons are read from disk over and over again (i.e. no caching at
> all as it seems). I don't know how recent his kdelibs is though, as I
> can't reproduce such a severe problem with the code-completion here
> (up-to-date kdelibs as of yesterday).

I can reproduce it, without caching the icons ourselves, code completion takes 
several seconds to populate (this is happening in a worker thread), whereas 
with the fix, it's instantaneous.

Cheers,
Hamish.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080617/9f1d73c8/attachment.htm>


More information about the kde-core-devel mailing list