Tsz-wo Sze created HDDS-10756:
---------------------------------

             Summary: Avoid proto2 ByteString#copyFrom(byte[])
                 Key: HDDS-10756
                 URL: https://issues.apache.org/jira/browse/HDDS-10756
             Project: Apache Ozone
          Issue Type: Improvement
            Reporter: Tsz-wo Sze
            Assignee: Tsz-wo Sze


As the name implied, ByteString#copyFrom(byte[]) creates a ByteString by 
copying the given byte array.  In some cases (e.g. the byte array is already 
copied), the copying can be avoided by using 
Proto2Utils.unsafeByteString(byte[]).



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