[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice
Subject: Re: Formatting large docs in Kword
From: Clarence Dang <dang () kde ! org>
Date: 2002-12-13 5:40:19
[Download RAW message or body]
On Wed, 11 Dec 2002 12:59 am, Nicolas Goutte wrote:
> On Tuesday 10 December 2002 07:25, Clarence Dang wrote:
> > I can see Nicolas smiling here because I once told him that these modes
> > where "exotic" and "useless" :-) But now it seems like I'm wrong!
>
> They might be exotic but when you have a text formated in this way they are
> very useful. :-)
>
Yes I know, you win :)
> > > BTW Kword now loads and edits these big docs pretty quickly.
> >
> > Really? The filter reads one character at a time, last time I checked...
>
> The filter is fast.
I agree that in the grand scheme of things it is pretty fast (practically and
in terms of time complexity).
But since I am an optimisation person (still programming 286s :)), I should
point out that calling QTextStream::operator>> (QChar) in
ASCIIImport::readLine 20 million times (for bug #45973, at least) is rather
expensive.
QT did not inline the function and there is way too much logic to read in a
single character in the qt libs especially for those 20MB DNA sequences that
we open every day :)
QStreamText::readLine does support Mac newlines (now) and would be much
faster....
But then, I'm not complaining :) so actually, don't change it to
QStreamText::readLine yet because I actually have a use for
ASCIIImport::readLine (since I'm going to be hacking that filter in a week or
two)....
I wonder if something like "partial importing" (only load part of the
document, what vi and msword appear to do) could be implemented in the
KOffice filter system....
> It is loading in KWord that is not, especially the
> needed paginating after load. The pagination may need even more time than
> the load itself. (That is why I have made KDE Bug #50467
> http://bugs.kde.org/show_bug.cgi?id=50467 )
>
Yes KWord seems to be the bottleneck with mswritefilter too but maybe it's the
amount of XML that gets passed to it...
Clarence
____________________________________
koffice mailing list
koffice@mail.kde.org
To unsubscribe please visit:
http://mail.kde.org/mailman/listinfo/koffice
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic