You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@htrace.apache.org by "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2014/12/30 23:19:13 UTC
[jira] [Commented] (HTRACE-34) MilliSpan.java: avoid constructing
ObjectMapper each time
[ 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)