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

ASF GitHub Bot commented on HDFS-17053:
---------------------------------------

hfutatzhanghb commented on PR #5757:
URL: https://github.com/apache/hadoop/pull/5757#issuecomment-1596372201

   @ayushtkn  Hi, sir. could you please help me review this minor changes when 
you have time?  Thanks a lot~.




> Optimize method BlockInfoStriped#findSlot to reduce time complexity.
> --------------------------------------------------------------------
>
>                 Key: HDFS-17053
>                 URL: https://issues.apache.org/jira/browse/HDFS-17053
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: farmmamba
>            Assignee: farmmamba
>            Priority: Trivial
>              Labels: pull-request-available
>
> Currently, in method findSlot. there exists codes snippet below:
> {code:java}
> for (; i < getCapacity(); i++) {
>   if (getStorageInfo(i) == null) {
>     return i;
>   }
> } {code}
> it will compute (triplets.length / 3;) every iteration, I think this can be 
> optimized.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to