You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Tatu Saloranta (Jira)" <ji...@apache.org> on 2019/10/11 05:23:00 UTC

[jira] [Created] (CURATOR-547) Make JAX-RS MessageBodyReader/-Writer impl (JsonServiceInstanceMarshaller) reuse Jackson ObjectMapper

Tatu Saloranta created CURATOR-547:
--------------------------------------

             Summary: Make JAX-RS MessageBodyReader/-Writer impl (JsonServiceInstanceMarshaller) reuse Jackson ObjectMapper
                 Key: CURATOR-547
                 URL: https://issues.apache.org/jira/browse/CURATOR-547
             Project: Apache Curator
          Issue Type: Improvement
            Reporter: Tatu Saloranta
            Assignee: Jordan Zimmerman


I noticed that the JAX-RS reader/writer implementation, `JsonServiceInstanceMarshaller` creates `ObjectMapper`s on-the-fly for every read and write. This is pretty inefficient, and it is easy to create and use a static mapper instance instead.



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