Re: [Development] Json support for QtCore

2011-12-12 Thread Sivan Greenberg
On Sun, Dec 11, 2011 at 6:40 PM, Robin Burchell wrote: > You're missing the bit where the binary format is not the only > representation. JSON can be parsed into it, it's stored like this in > memory, and it can be serialised back to it (obviously), but it can > also be serialised back to JSON. Or

Re: [Development] Json support for QtCore

2011-12-12 Thread marius.storm-olsen
-project.org] On Behalf Of ext Robin Burchell > Sent: Sunday, December 11, 2011 10:41 AM > To: Andre Somers > Cc: development@qt-project.org > Subject: Re: [Development] Json support for QtCore > > On Sun, Dec 11, 2011 at 5:33 PM, Andre Somers > wrote: > > However, like

Re: [Development] Json support for QtCore

2011-12-12 Thread lars.knoll
On 12/12/11 1:16 AM, "ext Thiago Macieira" wrote: >On Sunday, 11 de December de 2011 14.47.21, lars.kn...@nokia.com wrote: >> I now redid the benchmarks comparing qjson (as provided by my Ubuntu >> install, linked against Qt 4.7), qjsonparser (latest HEAD, linked >>against >> Qt 5) and my qtbinar

Re: [Development] Json support for QtCore

2011-12-11 Thread Thiago Macieira
On Sunday, 11 de December de 2011 14.47.21, lars.kn...@nokia.com wrote: > I now redid the benchmarks comparing qjson (as provided by my Ubuntu > install, linked against Qt 4.7), qjsonparser (latest HEAD, linked against > Qt 5) and my qtbinaryjson (linked against Qt5 as well). Here are the > numbers

Re: [Development] Json support for QtCore

2011-12-11 Thread Robin Burchell
On Sun, Dec 11, 2011 at 5:33 PM, Andre Somers wrote: > However, like I said, I guess I am missing something here. Could you > explain what the relationship is between this binary format and the JSON > format, and how it helps parsing & creating JSON? You're missing the bit where the binary format

Re: [Development] Json support for QtCore

2011-12-11 Thread Andre Somers
Op 11-12-2011 15:55, lars.kn...@nokia.com schreef: > The binary representation is optimized for fast reading. The binary > format > is relatively compact and stores the whole object in one blob. >> Is this a standard binary format of JSON, or something of your own devise? > It's something I wrote.

Re: [Development] Json support for QtCore

2011-12-11 Thread Robin Burchell
On Sun, Dec 11, 2011 at 3:55 PM, wrote: >>Is this a standard binary format of JSON, or something of your own devise? > > It's something I wrote. I wanted it to be something that you can simply > mmap from a file and use without ever having to parse anything to make > saving and restoring of json

Re: [Development] Json support for QtCore

2011-12-11 Thread lars.knoll
Hi Sivan, On 12/11/11 10:39 AM, "ext Sivan Greenberg" wrote: >Hi Lars! > >On Sat, Dec 10, 2011 at 11:32 PM, wrote: >> there were quite a few discussions and requests over the last months to >> add Json support as part of QtCore, and maybe integrating one of the >> existing parsers. > >There we

Re: [Development] Json support for QtCore

2011-12-11 Thread lars.knoll
On 12/11/11 1:31 AM, "ext Robin Burchell" wrote: >hi, > >On Sat, Dec 10, 2011 at 10:32 PM, wrote: >> I've benchmarked parsing speed and compared to the qjson >> (http://qjson.sourceforge.net/). It's around 7 times faster for the >> test.json file included in the project (the test case used in q

Re: [Development] Json support for QtCore

2011-12-11 Thread Ben Lau
On Sun, Dec 11, 2011 at 8:31 AM, Robin Burchell wrote: > hi, > > On Sat, Dec 10, 2011 at 10:32 PM, wrote: > > I've benchmarked parsing speed and compared to the qjson > > (http://qjson.sourceforge.net/). It's around 7 times faster for the > > test.json file included in the project (the test case

Re: [Development] Json support for QtCore

2011-12-11 Thread Sivan Greenberg
Hi Lars! On Sat, Dec 10, 2011 at 11:32 PM, wrote: > there were quite a few discussions and requests over the last months to > add Json support as part of QtCore, and maybe integrating one of the > existing parsers. There were also discussions and even a couple of bug report about adding "native

Re: [Development] Json support for QtCore

2011-12-10 Thread Robin Burchell
hi, On Sat, Dec 10, 2011 at 10:32 PM, wrote: > I've benchmarked parsing speed and compared to the qjson > (http://qjson.sourceforge.net/). It's around 7 times faster for the > test.json file included in the project (the test case used in qjson as > well). I'd be interested to see how your parse

[Development] Json support for QtCore

2011-12-10 Thread lars.knoll
Hi, there were quite a few discussions and requests over the last months to add Json support as part of QtCore, and maybe integrating one of the existing parsers. I was however never really happy with them. Mainly because they all parse into a QVariant(Map), and don't offer any real API to creat