hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-9221) Reduce allocation during block reports
Date Fri, 09 Oct 2015 19:10:07 GMT

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

Colin Patrick McCabe commented on HDFS-9221:
--------------------------------------------

+1 pending jenkins.  Thanks, [~sfriberg].

> Reduce allocation during block reports
> --------------------------------------
>
>                 Key: HDFS-9221
>                 URL: https://issues.apache.org/jira/browse/HDFS-9221
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: performance
>    Affects Versions: 2.7.1
>            Reporter: Staffan Friberg
>            Assignee: Staffan Friberg
>         Attachments: ReplicaState.patch
>
>
> When the BufferDecoder in BlockListAsLongs converts the stored value to a ReplicaState
enum it calls ReplicaState.getState(int) unfortunately this method creates a ReplicaState[]
for each call since it calls ReplicaState.values().
> This patch creates a cached version of the values and thus avoid all allocation when
doing the conversion.



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

Mime
View raw message