On Sun, Dec 11, 2011 at 8:31 AM, Robin Burchell <robin...@viroteck.net>wrote:
> hi, > > On Sat, Dec 10, 2011 at 10:32 PM, <lars.kn...@nokia.com> 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 parser fares compared to girish's > work (existing benchmark results, somewhat outdated probably, found at > > http://git.forwardbias.in/?p=qjsonparser.git;a=commit;h=180f3a1ea85adbea4d77e50ff3be3e75af918252 > ) > - those results at least look a lot better than 7 times faster, but > they are also probably different test data. > > But, parser aside: in general terms, I do think I agree that > converting to/from QVariant as an "API" isn' all that nice, so your > approach is a nice alternative. > > I do think I'd like to see QDataStream operators on QJsonDocument, > btw. sending json documents in binary form to/from files or sockets > would be useful. > _______________________________________________ > Development mailing list > Development@qt-project.org > http://lists.qt-project.org/mailman/listinfo/development > A side chat about the stream operation. I have made a tiny project / class to help to convert a non-QObject based class to QVariantMap , and vice versa easily . So that it could be converted to JSON/XML/YAML by just taking a further step. http://www.qtcentre.org/threads/46315-QtMapStream-serialization-of-object-class-to-QVariantMap
_______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development