You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2024/04/25 21:15:00 UTC

[jira] [Created] (HDDS-10756) Avoid proto2 ByteString#copyFrom(byte[])

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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org