[ 
https://issues.apache.org/jira/browse/PHOENIX-5789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17084533#comment-17084533
 ] 

Mingliang Liu commented on PHOENIX-5789:
----------------------------------------

{{ObjectMapper}} is considered expensive. I guess we should try to re-use it as 
much as possible. Meanwhile, I see some places where we may also want to use 
{{ObjectReader}}} and {{ObjectWriter}} instances and re-use them as well. They 
are fully thread-safe and reusable.

More guidelines can be seen at 
https://github.com/FasterXML/jackson-docs/wiki/Presentation:-Jackson-Performance

> try to standardize on a JSON library
> ------------------------------------
>
>                 Key: PHOENIX-5789
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5789
>             Project: Phoenix
>          Issue Type: Improvement
>          Components: core
>            Reporter: Istvan Toth
>            Assignee: Richard Antal
>            Priority: Minor
>         Attachments: PHOENIX-5789.4.x.v1.patch, PHOENIX-5789.4.x.v3.patch, 
> PHOENIX-5789.master.v1.patch, PHOENIX-5789.master.v2.patch, 
> PHOENIX-5789.master.v3.patch, PHOENIX-5789.master.v4.patch
>
>
> Phoenix uses at least the following JSON libraries:
>  * gson
>  * jackson
>  * jettison
> Of these, only the jackson usage is performance critical, as it is used 
> during bulk loading. 
> Try to standardize on a single one to reduce dependency hell.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to