hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira Ajisaka (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-10568) Reuse ObjectMapper instance in CombinedHostsFileReader and CombinedHostsFileWriter
Date Tue, 28 Jun 2016 01:18:57 GMT

    [ 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: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message