hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anoop Sam John (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:38:12 GMT

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

Anoop Sam John commented on HBASE-15820:

We don't really use CellCodec.  And one more thing to consider is that reusing the byte[]
keep its ref active for longer time and possibly not allow to die in young gen. It depends
on the usage. Still some thing to consider.. For very small sized byte[] not that much relevant
may be. But for large sized byte[] some thing to really consider.

> 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

View raw message