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

List:       koffice-devel
Subject:    Re: Fwd: [PATCH] Limit KoPicture's memory usage
From:       Werner Trobin <trobin () kde ! org>
Date:       2002-07-26 13:01:05
[Download RAW message or body]

On Friday 26 July 2002 14:41, Nicolas Goutte wrote:
> Sorry!
> 
> ----------  Forwarded Message  ----------
> 
> Subject: [PATCH] Limit KoPicture's memory usage
> Date: Fri, 26 Jul 2002 14:13:52 +0200
> From: Nicolas Goutte <nicog@snafu.de>
> To: kde-devel@mail.kde.org
> 
> The patch is for lib/kofficecore/koPictureImage.cc
> 
> It forbids QT to cache the X-Window image. It saves memory (the size of one
> image in display size) but makes things slower (visible in KWord.)
> 
> So I would ask people that have problems with KPresenter to test this patch
> and report their success/failure/problem/critic...
> 
> David: would you prefer such a patch before or after RC1?
> 
> If this patch is not enough, I will try to put the raw data in a KTempFile.
>  If even this would not be enough, I would not have an idea how to change
>  things further.

Before you go all the way to using a raw temporary file you might want to have 
a look at Waldo's virtual memory allocator in kdelibs/kdecore.

The idea behind that is to use a file for storing the data, as files have less 
priority than, say, code pages, and so the bitmaps would get mapped out 
before something "important" gets mapped out.

Ciao,
Werner
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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