You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Tsz Wo Nicholas Sze (JIRA)" <ji...@apache.org> on 2015/11/19 04:02:11 UTC
[jira] [Updated] (HDFS-9441) Do not call construct path string when
choosing block placement targets
[ https://issues.apache.org/jira/browse/HDFS-9441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz Wo Nicholas Sze updated HDFS-9441:
--------------------------------------
Attachment: h9441_20151118.patch
h9441_20151118.patch: 1st patch.
> Do not call construct path string when choosing block placement targets
> -----------------------------------------------------------------------
>
> Key: HDFS-9441
> URL: https://issues.apache.org/jira/browse/HDFS-9441
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: namenode
> Reporter: Tsz Wo Nicholas Sze
> Assignee: Tsz Wo Nicholas Sze
> Priority: Minor
> Attachments: h9441_20151118.patch
>
>
> - INodeFile.getName() is expensive since it involves quite a few string operations. The method is called in both ReplicationWork and ErasureCodingWork but the default BlockPlacementPolicy does not use the returned string. We should simply pass BlockCollection to reduce unnecessary computation when using the default BlockPlacementPolicy.
> - Another improvement: the return type of FSNamesystem.getBlockCollection should be changed to INodeFile since it always returns an INodeFile object.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)