[ 
https://issues.apache.org/jira/browse/HDDS-15907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18097321#comment-18097321
 ] 

Tsz-wo Sze commented on HDDS-15907:
-----------------------------------

Will work on a refactoring first; see HDDS-15909.

> Do not use varargs and Collection in IOzoneManagerLock
> ------------------------------------------------------
>
>                 Key: HDDS-15907
>                 URL: https://issues.apache.org/jira/browse/HDDS-15907
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: OM
>            Reporter: Tsz-wo Sze
>            Assignee: Tsz-wo Sze
>            Priority: Major
>
> In IOzoneManagerLock, there are methods having varargs and Collection 
> parameters.  They are inefficient since they force copying the underly 
> array/Collection.  It is better to use Iterable as in 
> [Striped.bulkGet(Iterable)|https://guava.dev/releases/19.0/api/docs/com/google/common/util/concurrent/Striped.html#bulkGet(java.lang.Iterable)]



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