hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Poon (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (HBASE-18026) ProtobufUtil seems to do extra array copying
Date Thu, 11 May 2017 00:57:05 GMT

     [ https://issues.apache.org/jira/browse/HBASE-18026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vincent Poon reassigned HBASE-18026:
------------------------------------

    Assignee: Vincent Poon

> 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
>            Assignee: 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)

Mime
View raw message