[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KHTML memory usage.
From: Oliver Stieber <oliver_stieber () yahoo ! co ! uk>
Date: 2005-06-17 13:08:02
Message-ID: 20050617130802.45733.qmail () web26206 ! mail ! ukl ! yahoo ! com
[Download RAW message or body]
--- David Faure <faure@kde.org> wrote:
> On Friday 17 June 2005 14:35, Oliver Stieber wrote:
> > Hi,
> >
> > I've been thinking about trying to put some
> > improvements into KHTML and was wondering if
> anyone
> > knows.
> >
> > a: The difference between the page content size as
> > downloaded and the memory used by KHTML to render
> the
> > page.
>
> DOM tree and render tree are quite different
> structures than the html text
> we get as input.
Yes, but is the dom significantly larger than the html
text.
I also assume that images aren't kept in jpeg format
and there are are a number of layout hints stored
about the visible page.
>
> > b: How easy it would be to drop pages the rendered
> and
> > only hold the downloaded content of pages that
> haven't
> > been viewed for a while or when memory starts
> getting tight.
>
> And just how would KHTML be able to repaint the
> page, if it doesn't
> have the DOM tree and render tree around anymore?
>
Exactly the same way it did the first time, using the
HTML text and jpg images that were downloaded and are
cached.
At the moment something like this happens:
page.content = download(url)
khtml.dom = new Dom(page.content)
But I want to add two other functions:
if (running out of memory and page isn't displayed)
then
delete khtml.dom
khtml.dom = null
if (page in view and dom == NULL)
khtml.dom = new Dom(page.content)
> --
> David Faure, faure@kde.org, sponsored by Trolltech
> to work on KDE,
> Konqueror (http://www.konqueror.org), and KOffice
> (http://www.koffice.org).
>
>
> >> Visit
> http://mail.kde.org/mailman/listinfo/kde-devel#unsub
> to unsubscribe <<
>
___________________________________________________________
How much free photo storage do you get? Store your holiday
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic