Re: [Interest] Faster QXmlStreamWriter?

2018-04-24 Thread Thiago Macieira
On Tuesday, 24 April 2018 22:48:03 PDT alexander golks wrote: > when using QJsonDocument you may/should pay attention to QtQTBUG-47629: > QJsonObject size maximum length 128MB > https://bugreports.qt.io/browse/QTBUG-47629 That's one of the reasons I'm adding CBOR support. The new implementation s

Re: [Interest] Faster QXmlStreamWriter?

2018-04-24 Thread Thiago Macieira
On Tuesday, 24 April 2018 22:46:43 PDT Maurice Kalinowski wrote: > > On Tuesday, 24 April 2018 09:39:37 PDT Julien Cugnière wrote: > > > 2018-04-24 17:52 GMT+02:00 Thiago Macieira : > > > > On Tuesday, 24 April 2018 07:39:08 PDT Konstantin Tokarev wrote: > > > >> If your serialized data is intended

Re: [Interest] Use Qt release DLLs while debugging application

2018-04-24 Thread Thiago Macieira
On Tuesday, 24 April 2018 22:35:00 PDT Rainer Wiesenfarth wrote: > ​Note: You have to make sure that any other library you link against is > using the same C runtime​ And that's exactly the problem. With MSVC, the definition of "debug" and "release" can take one of two meanings: optimised or not

Re: [Interest] Faster QXmlStreamWriter?

2018-04-24 Thread alexander golks
Am Tue, 24 Apr 2018 08:52:53 -0700 schrieb Thiago Macieira : > On Tuesday, 24 April 2018 07:39:08 PDT Konstantin Tokarev wrote: > > 24.04.2018, 11:40, "Vadim Peretokin" : > > > On Tue, Apr 24, 2018 at 8:14 AM Thiago Macieira > wrote: > > >> On Monday, 23 April 2018 22:02:20 PDT Vadim Peretok

Re: [Interest] Faster QXmlStreamWriter?

2018-04-24 Thread Maurice Kalinowski
> On Tuesday, 24 April 2018 09:39:37 PDT Julien Cugnière wrote: > > 2018-04-24 17:52 GMT+02:00 Thiago Macieira : > > > On Tuesday, 24 April 2018 07:39:08 PDT Konstantin Tokarev wrote: > > >> If your serialized data is intended to be read by Qt applications > > >> only, QDataStream may be a good cho

Re: [Interest] Use Qt release DLLs while debugging application

2018-04-24 Thread Henry Skoglund
On 2018-04-25 07:35, Rainer Wiesenfarth wrote: *You can, if* you are interested in the debug code of your application only, but not in the one of Qt and the C runtime. If you use the release version of Qt, you have to make sure that you link with the same runtime, i.e. you use /MD (Mulit-threa

Re: [Interest] Use Qt release DLLs while debugging application

2018-04-24 Thread Rainer Wiesenfarth
On Tue, Apr 24, 2018 at 10:34 PM, Thiago Macieira wrote: > On Monday, 23 April 2018 22:34:20 PDT Hamish Moffatt wrote: > > This must be an FAQ, but can I use the Qt release mode DLLs while > > running my application compiled for debug? (In Visual Studio 2015, Qt > 5.8). > > > ​[...] > > > You can

Re: [Interest] Use Qt release DLLs while debugging application

2018-04-24 Thread Thiago Macieira
On Monday, 23 April 2018 22:34:20 PDT Hamish Moffatt wrote: > This must be an FAQ, but can I use the Qt release mode DLLs while > running my application compiled for debug? (In Visual Studio 2015, Qt 5.8). > > I looked through the mkspecs and it doesn't seem possible. The > qtPlatformTargetSuffix

Re: [Interest] Use Qt release DLLs while debugging application

2018-04-24 Thread Gunnar Roth
I would recommend setting the /Zo option for enhanced debugging information in your application release build. ( is default in vs 2017). Alternatively you can change disable your optimisation in release build with /Od. you CANNOT use a qt application debug build with Qt realease dlls, becaus

Re: [Interest] Faster QXmlStreamWriter?

2018-04-24 Thread Thiago Macieira
On Tuesday, 24 April 2018 09:39:37 PDT Julien Cugnière wrote: > 2018-04-24 17:52 GMT+02:00 Thiago Macieira : > > On Tuesday, 24 April 2018 07:39:08 PDT Konstantin Tokarev wrote: > >> If your serialized data is intended to be read by Qt applications only, > >> QDataStream may be a good choice > > >

Re: [Interest] Faster QXmlStreamWriter?

2018-04-24 Thread Julien Cugnière
2018-04-24 17:52 GMT+02:00 Thiago Macieira : > On Tuesday, 24 April 2018 07:39:08 PDT Konstantin Tokarev wrote: >> 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

Re: [Interest] Faster QXmlStreamWriter?

2018-04-24 Thread Thiago Macieira
On Tuesday, 24 April 2018 08:52:53 PDT Thiago Macieira wrote: > > 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). Followed by regul

Re: [Interest] Faster QXmlStreamWriter?

2018-04-24 Thread Thiago Macieira
On Tuesday, 24 April 2018 07:39:08 PDT Konstantin Tokarev wrote: > 24.04.2018, 11:40, "Vadim Peretokin" : > > On Tue, Apr 24, 2018 at 8:14 AM Thiago Macieira wrote: > >> On Monday, 23 April 2018 22:02:20 PDT Vadim Peretokin wrote: > >>> > Correct, QBuffer is not optimised for speed. I ran into th

Re: [Interest] Faster QXmlStreamWriter?

2018-04-24 Thread Konstantin Tokarev
24.04.2018, 11:40, "Vadim Peretokin" : > On Tue, Apr 24, 2018 at 8:14 AM Thiago Macieira > 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 t

Re: [Interest] Faster QXmlStreamWriter?

2018-04-24 Thread Jason H
Google's protobuf come highly recommended. https://github.com/google/protobuf Sent: Tuesday, April 24, 2018 at 4:39 AM From: "Vadim Peretokin" To: "Thiago Macieira" Cc: interest@qt-project.org Subject: Re: [Interest] Faster QXmlStreamWriter?     On Tue, Apr 24, 2018 at 8:14 AM Thiago Macieir

Re: [Interest] Faster QXmlStreamWriter?

2018-04-24 Thread Vadim Peretokin
On Tue, Apr 24, 2018 at 8:14 AM Thiago Macieira 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 pi