[
https://issues.apache.org/jira/browse/HBASE-16783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15604166#comment-15604166
]
ramkrishna.s.vasudevan commented on HBASE-16783:
------------------------------------------------
bq.(cellBlockSize > 0) ? cellBlock.get(cellBlock.size() - 1) : null;
If I don't pass this here then i need to pass the cellBlock and do the above
check inside createHeaderAndMessageBytes.
bq.if (possiblePBBuf != null) {
Sure will add comment. Thanks Stack for the review.
> Use ByteBufferPool for the header and message during Rpc response
> -----------------------------------------------------------------
>
> Key: HBASE-16783
> URL: https://issues.apache.org/jira/browse/HBASE-16783
> Project: HBase
> Issue Type: Improvement
> Reporter: ramkrishna.s.vasudevan
> Assignee: ramkrishna.s.vasudevan
> Priority: Minor
> Attachments: HBASE-16783.patch, HBASE-16783_1.patch,
> HBASE-16783_2.patch, HBASE-16783_3.patch, HBASE-16783_4.patch,
> HBASE-16783_5.patch, HBASE-16783_6.patch
>
>
> With ByteBufferPool in place we could avoid the byte[] creation in
> RpcServer#createHeaderAndMessageBytes and try using the Buffer from the pool
> rather than creating byte[] every time.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)