[
https://issues.apache.org/jira/browse/ORC-946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17399294#comment-17399294
]
Yiqun Zhang commented on ORC-946:
---------------------------------
!image-2021-08-15-10-10-29-685.png|width=361,height=233!!image-2021-08-15-10-10-56-564.png|width=371,height=257!!image-2021-08-15-10-11-19-710.png|width=356,height=255!
Popularity shows that gson is used more often.
Some benchmarking articles
https://www.overops.com/blog/the-ultimate-json-library-json-simple-vs-gson-vs-jackson-vs-json/
https://www.ericthecoder.com/2020/10/13/benchmarking-gson-vs-jackson-vs-moshi-2020/
* If you have an environment that deals often or primarily with big JSON files,
then *Jackson* is your library of interest. GSON struggles the most with big
files.
* If your environment primarily deals with lots of small JSON requests, such as
in a micro services or distributed architecture setup, then *GSON* is your
library of interest. Jackson struggles the most with small files.
On balance I prefer to use gson with minimal changes.
> Unified json library
> --------------------
>
> Key: ORC-946
> URL: https://issues.apache.org/jira/browse/ORC-946
> Project: ORC
> Issue Type: Improvement
> Components: Java
> Affects Versions: 1.8.0
> Reporter: Yiqun Zhang
> Assignee: Yiqun Zhang
> Priority: Minor
> Fix For: 1.8.0
>
> Attachments: image-2021-08-15-10-10-05-605.png,
> image-2021-08-15-10-10-29-685.png, image-2021-08-15-10-10-56-564.png,
> image-2021-08-15-10-11-19-710.png
>
>
> The java project depends on several json libraries, can we unify them into
> one so that we can also reduce the dependencies.
> use jackson-core in orc-benchmarks-core
> org.apache.orc.bench.core.convert.json.JsonReader
> org.apache.orc.bench.core.convert.json.JsonWriter
> use gson in tools
> org.apache.orc.tools.convert.JsonReader
> org.apache.orc.tools.json.JsonSchemaFinder
> org.apache.orc.tools.json.JsonShredder
> org.apache.orc.tools.json.TestJsonSchemaFinder
> use jettjson in tools
> org.apache.orc.tools.KeyTool
> org.apache.orc.tools.JsonFileDump
> org.apache.orc.tools.PrintData
>
> I could provide a pr to unify the json library. But I'd like to hear from
> people
> 1. is the unification necessary?
> 2. if so, which library do we use? jackson/gson/jettison
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)