You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2022/08/23 01:57:00 UTC

[jira] [Created] (HDDS-7161) Checksum.int2ByteString() is expensive

Wei-Chiu Chuang created HDDS-7161:
-------------------------------------

             Summary: Checksum.int2ByteString() is expensive
                 Key: HDDS-7161
                 URL: https://issues.apache.org/jira/browse/HDDS-7161
             Project: Apache Ozone
          Issue Type: Improvement
          Components: Ozone Client
    Affects Versions: 1.3.0
            Reporter: Wei-Chiu Chuang
         Attachments: Screen Shot 2022-08-22 at 6.56.03 PM.png

Checksum.int2ByteString() allocates a temporary byte array and then make a copy of it, which is very expensive.

It can be replaced with a zero copy wrapper, using UnsafeByteOperations.unsafeWrap() API.



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