[
https://issues.apache.org/jira/browse/HDDS-16252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-16252:
----------------------------------
Labels: pull-request-available (was: )
> 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
> Assignee: Shuo Huang
> Priority: Major
> Labels: pull-request-available
>
> 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]