[ https://issues.apache.org/jira/browse/HDFS-16226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17414943#comment-17414943 ]
zhanghaobo commented on HDFS-16226: ----------------------------------- If it is necessary,I can try to apply a patch~ > Generate locatedBlocks can use binary search to find curBlk > ----------------------------------------------------------- > > Key: HDFS-16226 > URL: https://issues.apache.org/jira/browse/HDFS-16226 > Project: Hadoop HDFS > Issue Type: Wish > Components: namenode > Affects Versions: 3.3.1 > Reporter: zhanghaobo > Priority: Minor > > Currently,In method BlockManager#createLocatedBlockList,we locate curBlk > index use sequential search. I think whether we can use binary search or not. > When a file has a lot of blocks, We can get benefit from it. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org