[
https://issues.apache.org/jira/browse/HBASE-15581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15222195#comment-15222195
]
Anoop Sam John commented on HBASE-15581:
----------------------------------------
PB 2.6.0 onwards having some ways of reducing garbage and avoid some copying.
eg: CIS#readBytes
If the bytes, created the CIS, specified as immutable, it avoids a copy.
Right now in write path when Mutation comes as PB object, for field like row,
internally PB creates a ByteString representation and on which we call
toByteArray()
The request bytes 1st copied from socket to a large byte array. PB then create
CIS over this. Create ByteString by a copy. On that BS we call toByteArray()
which will do again one more copy.
We can avoid many copied.
> Reduce garbage created by PB in write path
> ------------------------------------------
>
> Key: HBASE-15581
> URL: https://issues.apache.org/jira/browse/HBASE-15581
> Project: HBase
> Issue Type: Sub-task
> Reporter: Anoop Sam John
> Assignee: Anoop Sam John
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)