farmmamba created HDFS-17053:
--------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]