Shuo Huang created HDDS-16252:
---------------------------------
Summary: Avoid the per-group list copy in
OmKeyInfo.verifyAndGetKeyLocations
Key: HDDS-16252
URL: https://issues.apache.org/jira/browse/HDDS-16252
Project: Apache Ozone
Issue Type: Sub-task
Reporter: Shuo Huang
OmKeyInfo#verifyAndGetKeyLocations calls
OmKeyLocationInfoGroup#getLocationList() only to iterate over the block
locations and populate allocatedBlockLocations.
getLocationList() creates a flattened list on every call. This is unnecessary
here because the grouped lists can be iterated directly.
Use getLocationLists() with nested loops to avoid the intermediate list
allocation. The behavior remains unchanged.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]