[
https://issues.apache.org/jira/browse/HTRACE-34?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14261563#comment-14261563
]
Colin Patrick McCabe commented on HTRACE-34:
--------------------------------------------
It's completely thread-safe to make the writer static, as described here:
http://stackoverflow.com/questions/3907929/should-i-make-jacksons-objectmapper-as-static-final
> MilliSpan.java: avoid constructing ObjectMapper each time
> ---------------------------------------------------------
>
> Key: HTRACE-34
> URL: https://issues.apache.org/jira/browse/HTRACE-34
> Project: HTrace
> Issue Type: Improvement
> Reporter: Colin Patrick McCabe
> Assignee: Colin Patrick McCabe
> Priority: Minor
> Attachments: HTRACE-34.001.patch
>
>
> MilliSpan.java: avoid constructing a new ObjectMapper each time toJson() is
> called. As pointed out by St.Ack
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)