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

Akira Ajisaka commented on HDFS-10568:
--------------------------------------

Thanks [~linyiqun] for reporting this and creating the patch.
{code}
          READER.readValues(new JsonFactory().createJsonParser(input));
{code}
Can we reuse JsonFactory as well?

> Reuse ObjectMapper instance in CombinedHostsFileReader and 
> CombinedHostsFileWriter
> ----------------------------------------------------------------------------------
>
>                 Key: HDFS-10568
>                 URL: https://issues.apache.org/jira/browse/HDFS-10568
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs-client
>            Reporter: Yiqun Lin
>            Assignee: Yiqun Lin
>         Attachments: HDFS-10568.001.patch
>
>
> The {{ObjectMapper}} instance is not reused in class 
> {{CombinedHostsFileReader}} and {{CombinedHostsFileWriter}}. We can reuse 
> them to improve performance.
> Here are related issues: HDFS-9724, HDFS-9768.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to