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

List:       kde-devel
Subject:    mmaping icons
From:       Stephan Kulow <coolo () kde ! org>
Date:       1999-02-11 13:46:32
[Download RAW message or body]

Hi!

It just came to my mind, that each and every application
loads tons of icons into the memory and that KIconloader
caches these icons, but it does only cache for one application.

Can't we use shared memory for them? I mean is this
technicly possible? I know that sharing them per se
would work, but how could this be done? Sharing the
files's contens would only save some kilobytes, but
I think sharing the QPixmap objects right away could
save a lot, since each and every QPixmap is saved into
the X server's memory. What if KIconloader detects 
"somehow" that there is already this pixmap in the
X server and only references this one instead of
creating a deep copy? You know? This gets even more
important when we used textured styles, where each
application loads 30kb or more for their textures.

Any toughts?

Greetings, Stephan

-- 
As long as Linux remains a religion of freeware fanatics,
Microsoft have nothing to worry about.  
                       By Michael Surkan, PC Week Online

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

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