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

List:       koffice-devel
Subject:    Re: Faster saving - new data
From:       Werner Trobin <trobin () kde ! org>
Date:       2004-04-16 5:07:08
Message-ID: 200404160707.08118.trobin () kde ! org
[Download RAW message or body]

On Thursday 15 April 2004 21:41, David Faure wrote:

[...]

> The first three are the usual QDom-based ones (which have the problem
> of the memory consumption):
>  streaming QDomDocument (utf8): 374 + 3219 = 3593
>  saving QDomDocument to stream (utf8): 374 + 3228 = 3602
>  QDomDocument::toCString (utf8): 374 + 2230 = 2604
> 
> Then comes
>  writing XML by hand via QTextStream (utf8): 4180
> which is not only the slowest (*), but also a high risk of syntax errors.
> 
> And finally, the new one is the TagWriter class that I wrote, which writes
> raw XML directly to the file (no QTextStream involved), but offers a 
high-level
> API (startElement, setAttribute, endElement)
>  writing XML using TagWriter (utf8): 381
> 
> I think this is an impressive result!

Wow! That's really impressive. And it's not that much code either. Thanks for 
testing that :-)

Ciao,
Werner
_______________________________________________
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