[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-27 20:04:59
[Download RAW message or body]

On Samstag, 27. Juli 2002 11:49, Nicolas Goutte wrote:
> On Freitag, 26. Juli 2002 23:49, David Faure wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On Friday 26 July 2002 22:46, Nicolas Goutte wrote:
> > > The problem is that I would either need a QIODevice or something that
> > > works with a QIODevice. The VM allocator is not and cannot.
> >
> > Cannot? What prevents writing a QIODevice-derived class, that
> > calls copy() on a KVMAllocator in read() and write() ?
>
> Sorry, what I wrote was clumsy. What I meant was that there is no QIODevice
> ready to use yet.
>
> > With images, I think we always know the data size, so we can simply
> > allocate one Block before hand.
>
> Yes, but I do not think that it is work the work. The VM allocator uses a
> KTempFile, so I can use it directly too and have a QIODevice for free.
>
> In any case, with this serious bug in QShared and with QShared uses alll
> over QT, I do not know how useful it is to try to gain some memory if
> elsewhere they are giant leaks. (Each QImage or QPixmap create each one
> shared object. This shared object is never deleted. So as far as I can
> overview the problem, we probably have a leak at each drawing of a picture
> in KPresenter.)

Sorry, the bug is not in QShared but only in KoPicture. I had missed that the 
first use of the QShared object was registered while creating the object. So 
QT is good and there is no leak (except in KoPictureShared, which is going to 
fixed as soon as I commit.)

So I will try to go further to find ways to gain memory.

>
> > - --
> > David FAURE, david@mandrakesoft.com, faure@kde.org
>
> Have a nice day/evening/night!

Have a nice day/evening/night!

>
> > http://people.mandrakesoft.com/~david/
> > Contributing to: http://www.konqueror.org/, http://www.koffice.org/
> > KOffice 1.2 RC1 is slightly delayed. Stay tuned.
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.0.6 (GNU/Linux)
> > Comment: For info see http://www.gnupg.org
> >
> > iD8DBQE9QcPR72KcVAmwbhARAjnqAKCU3DpxzYYB7rfahooLJOXa+6i4DwCfdSBr
> > lhxAOC1fqBmMVGdeupP+iss=
> > =uAG7
> > -----END PGP SIGNATURE-----
> >
> > _______________________________________________
> > 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

_______________________________________________
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