You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Vincent Poon (JIRA)" <ji...@apache.org> on 2017/05/11 00:57:04 UTC

[jira] [Created] (HBASE-18026) ProtobufUtil seems to do extra array copying

Vincent Poon created HBASE-18026:
------------------------------------

             Summary: ProtobufUtil seems to do extra array copying
                 Key: HBASE-18026
                 URL: https://issues.apache.org/jira/browse/HBASE-18026
             Project: HBase
          Issue Type: Bug
    Affects Versions: 2.0.0, 1.3.2
            Reporter: Vincent Poon
            Priority: Minor


In ProtobufUtil, the protobuf fields are copied into an array using toByteArray().  These are then passed into the KeyValue constructor which does another copy.

It seems like we can avoid a copy here by using HBaseZeroCopyByteString#zeroCopyGetBytes() ?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)