Better HN
topnewbestaskshowjobs
Log inSign up

tonytung

2 karma · joined Sep 10, 2014 (12y ago) · 4 submissions

Submissions

comment 12y ago · link · parent

This is based on Jackson stream parsing, so by definition, it can't be faster than Jackson. :)

comment 12y ago · link · parent

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)

comment 12y ago · link · parent

Please see the comment here https://news.ycombinator.com/item?id=8298557

comment 12y ago · link · parent

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!