[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:       Nicolas Goutte <nicog () snafu ! de>
Date:       2002-07-26 20:46:40
[Download RAW message or body]

On Freitag, 26. Juli 2002 15:01, Werner Trobin wrote:
> 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.

Thank you for pointing out!

>
> 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.

The problem is that I would either need a QIODevice or something that works 
with a QIODevice. The VM allocator is not and cannot.

However the VM allocator is perhaps an idea to keep for KOffice 1.3, 
especially for EPS, which need the raw data often.

>
> Ciao,
> Werner

Have a nice day/evening/night!

> _______________________________________________
> koffice-devel mailing list
> koffice-devel@mail.kde.org
> http://mail.kde.org/mailman/listinfo/koffice-devel

_______________________________________________
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