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

List:       kde-core-devel
Subject:    Re: icon server
From:       aleXXX <alexander.neundorf () gmx ! net>
Date:       2001-12-28 13:36:34
[Download RAW message or body]

On Fri 21 Dec 01 03:29, Waldo Bastian wrote:
> On Monday 17 December 2001 02:26 pm, Lubos Lunak wrote:
> > If this icon
> > server is not fast enough, then whoever came first with the idea that
> > icon loading is slow, was wrong.

Ehh, no.
Maybe it could still be much slower, but it is one thing which takes 
considerable time, I measured it some time ago.
Can't remember exactly what I did and what the exact results where, but icon 
loading took a considerable amount of time.
Probably there is a mail somewhere in the mailing lists...

> >  Well ... comments?
>
>
> Yes, I'm afraid we ain't gonna win much with this :-( I don't think icon
> loading is very slow btw, but it is something which costs considerable
> time, as such it is a candidate for improvement.
>
> On to plan B then.. that would be to try to delay loading icons as much as
> possible. E.g. icons used in menu's theoretically don't need to be loaded

Yes, this has to be done in the xmlgui stuff.
Maybe also for the toolbars.
Also often KActions are created with a call to one of the functions in 
kiconloader.h, which all load the icon immediatly and return a QPixmap or 
QIconSet. To change this the return type would have to be changed to 
something which loads the icon later when needed.

> until the menu is actually shown. Konqueror loads about 150 icons on
> startup, (50 of which are for the cogwheel) but I only see about 30 icons
> on the screen. That seems to indicate that we can load about 70 icons
> later.
>
> Some other things I noticed while looking at konqueror with strace:
> * We load about 50 images for the rotating cogwheel, making that a single
> .mng should be faster one would think.
> * favicons that aren't there are searched in about 20 directories where
> they most certainly will not be either. It is really not neccessary to look
> for
> /ext/kde-head/share/icons/hicolor/16x16/mimetypes/favicons/developer.kde.or
>g.png

Yes. Icons are searched in very many dirs, it should be possible to limit 
this.

Bye
Alex

P.S. sorry, I absolutely don't have time to do anything before January 15th

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

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