[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Kmail slow
From: Michael Matz <matzmich () cs ! tu-berlin ! de>
Date: 2000-06-09 17:50:28
[Download RAW message or body]
Hi,
On Fri, 9 Jun 2000, Rik Hemsley wrote:
> > > Aah, while I remember I also need the database to keep a tree structure and
> > > incrementally update it for threaded message views.
> >
> > That's easy :) Just keep a parent id with each mail header. And perhaps also
> > a child id for better performance.
>
> Hmm, I do that in Empath, but not a child id - a message may have more than
> one children !
Thats easy too :) In each message store a pointer (or msg-ID) to the
sibling message. So if you have a parent P, you get the first child C by
P->child, and all other children by following C->sibling. (like
for (c=p->child; c; c=c->sibling) {do_something_with(c);} )
Ciao,
Michael.
>> Visit http://master.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