[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Global save method option
From:       Nicolas Goutte <nicolasg () snafu ! de>
Date:       2004-02-14 3:05:40
Message-ID: 200402140405.40049.nicolasg () snafu ! de
[Download RAW message or body]

On Saturday 14 February 2004 03:57, Nicolas Goutte wrote:
> On Saturday 14 February 2004 02:51, David Faure wrote:
> > On Saturday 14 February 2004 02:00, Nicolas Goutte wrote:
> > > Is it possible to add KOffice-wide options that:
> > > - can be used also in filters
> > > - have a nice user interface in each KOffice application
> > >
> > > My problem is about saving a UTF-8 XML file from QDomDocument. There
> > > are two possibilities:
> > > - by QCString (fast but uses rougly twice as much memory (or perhaps
> > > even more as I have not checked what KZIp and lower do.))
> > > - by QTextStream (roughly twice as slow but low need of memory)
> >
> > I just read some QDomDocument code and I think you're wrong about
>
> So I tested with the attached program. (Change the #if and #elif to get
> each test mode. The time result is in 0.01s unit.)
>
> So for the maindoc.xml of the KWord demo flatland.kwd, I get:
> 4.99 s by QCString
> 13,44 s by QDomDocument::save (however that is then without indenting.)
> 18.47 s by QTextStream::operator <<
>
> (However I had seen in the past that KZip levels a little. I had not a huge

I meant: ...not *such* a huge difference...
(It was about 2-3 times, not 3-5 times like here.)

> difference when I had tried to change KoDocument.)
>
(...)

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
https://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