hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Marc Spaggiari (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-15820) Re-using byte[] from Bytes can save some objects creations
Date Thu, 12 May 2016 13:45:13 GMT

    [ https://issues.apache.org/jira/browse/HBASE-15820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15281525#comment-15281525
] 

Jean-Marc Spaggiari commented on HBASE-15820:
---------------------------------------------

Yeah, I checked for the references. Arrays are copied in the methods that are called. So it's
fine. And it's all small arrays here, so it should be fine. Just sad that  it's not used that
much. There is also optimization on filters, etc. But again, small usage.

> Re-using byte[] from Bytes can save some objects creations
> ----------------------------------------------------------
>
>                 Key: HBASE-15820
>                 URL: https://issues.apache.org/jira/browse/HBASE-15820
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Jean-Marc Spaggiari
>            Assignee: Jean-Marc Spaggiari
>            Priority: Minor
>
> HBASE-15233 will allow byte arrays re-usage for Bytes.toBytes() methods. CellCodec can
benefit from that in many places.
> Patch will follow as soon as there is one in HBASE-15233.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message