[Interest] Faster QXmlStreamWriter?

alexander golks alex at golks.de
Wed Apr 25 07:48:03 CEST 2018


Am Tue, 24 Apr 2018 08:52:53 -0700
schrieb Thiago Macieira <thiago.macieira at intel.com>:

> On Tuesday, 24 April 2018 07:39:08 PDT Konstantin Tokarev wrote:
> > 24.04.2018, 11:40, "Vadim Peretokin" <vperetokin at gmail.com>:  
> > > On Tue, Apr 24, 2018 at 8:14 AM Thiago Macieira   
> <thiago.macieira at intel.com> wrote:
> > >> On Monday, 23 April 2018 22:02:20 PDT Vadim Peretokin wrote:  
> > >>> > Correct, QBuffer is not optimised for speed. I ran into that while
> > >>> > developing
> > >>> > QCborStreamWriter. The solution was to bypass it for speed.  
> > >>> 
> > >>> OK, that's a pity. I'll look into using pugixml instead, and if anyone
> > >>> else
> > >>> knows a faster XML serializer, I'd he happy to hear about it.  
> > >> 
> > >> Any chance you can choose a different serialisation format?  
> > > 
> > > We're thinking on the consequences of that - if pugixml isn't fast enough
> > > still, will look at a different format. Recommendations welcome! :)  
> > If your serialized data is intended to be read by Qt applications only,
> > QDataStream may be a good choice  
> 
> Also slow.
> 
> Binary QJsonDocument is the fastest, followed closely by QCborValue (new in 
> 5.12).
> 

when using QJsonDocument you may/should pay attention to QtQTBUG-47629: QJsonObject size maximum length 128MB
https://bugreports.qt.io/browse/QTBUG-47629

-- 
/*
 */* Only Sun can take such nice parts and fuck up the programming interface
 * * like this.  Good job guys...
 * *\/
 *        linux-2.6.6/drivers/net/sunhme.c
 */



More information about the Interest mailing list