[ 
https://issues.apache.org/jira/browse/HDDS-16252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shuo Huang reassigned HDDS-16252:
---------------------------------

    Assignee: Shuo Huang

> 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
>
> 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]

Reply via email to