[prev in list] [next in list] [prev in thread] [next in thread]
List: kmail-devel
Subject: Re: Displaying large message takes loooong
From: Don Sanders <sanders () trolltech ! com>
Date: 2002-10-15 6:53:39
[Download RAW message or body]
On Tuesday 15 October 2002 06:48, Marc Mutz wrote:
> On Monday 14 October 2002 16:22, Don Sanders wrote:
> <snip>
>
> > For a quick solution
> > result = result.replace( "\r\n", "\n" );
> > could just be replaced by looping over result modifying it and
> > then truncating it. That would require an insignificant amount of
> > memory and should only take milliseconds for a 1MB message.
>
> <snip>
>
> Shouldn't this kind of optimization for
> length(replaced) > length(replacement)
> go into vanilla QCString for 3.1 final instead? ;-)
Looking at QCString::replace it already does contain this
optimization, and in fact it even uses memcpy to copy blocks of
chars.
Martin sent me the mail and I can reproduce the problem. There's
something very wrong going on here, so maybe I can get this
optimization into 3.1 as a bug fix.
Don.
_______________________________________________
KMail Developers mailing list
kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic