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

Sarveksha Yeshavantha Raju resolved HDDS-16252.
-----------------------------------------------
    Fix Version/s: 2.3.0
       Resolution: Fixed

> 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
>             Fix For: 2.3.0
>
>
> 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