You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "zhouyingchao (JIRA)" <ji...@apache.org> on 2018/06/21 10:13:00 UTC

[jira] [Created] (HDFS-13693) Remove unnecessary search in INodeDirectory.addChild during image loading

zhouyingchao created HDFS-13693:
-----------------------------------

             Summary: Remove unnecessary search in INodeDirectory.addChild during image loading
                 Key: HDFS-13693
                 URL: https://issues.apache.org/jira/browse/HDFS-13693
             Project: Hadoop HDFS
          Issue Type: Improvement
          Components: namenode
            Reporter: zhouyingchao


InĀ FSImageFormatPBINode.loadINodeDirectorySection, all child INodes are added to their parent INode's map one by one. The adding procedure will search a position in the parent's map and then insert the child to the position. However, during image loading, the search is unnecessary sinceĀ the insert position should always be at the end of the map given the sequence they are serialized on disk.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org