HNHacker News
TopNewBestAskShowJobs

tonytung

2 karma · joined September 10, 2014

submissionscomments
tonytung··on Fast, auto-generated streaming JSON parsing for Android
This is based on Jackson stream parsing, so by definition, it can't be faster than Jackson. :)
tonytung··on Fast, auto-generated streaming JSON parsing for Android
The two are not really comparable since you get different results (JSONObjects are not strongly typed). You will easily be able to find workloads where one is better than the other, but in the average case, ig-json-parser will probably be faster because it's based on Jackson. (see json/jackson/manual vs json/org.json/manual on https://github.com/eishay/jvm-serializers/wiki)
tonytung··on Fast, auto-generated streaming JSON parsing for Android
Please see the comment here https://news.ycombinator.com/item?id=8298557
tonytung··on Fast, auto-generated streaming JSON parsing for Android
Hi!

I'm one of the authors of this library. The code this library emits is very similar to the json/jackson/manual serializer/deserializer in https://github.com/eishay/jvm-serializers/wiki. Conveniently, GSON is benchmarked there too.

You're right, the field names could be guessed at compile time. Please feel free to submit a PR!

Thanks!