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

Anoop Sam John commented on HBASE-16327:
----------------------------------------

So at the RPCServer response write level, when we have N BBs we will have to 
create an MBB over it and call write by passing the channel.  (Now it is 
creating BufferChain).  MBB creation will have some extra overhead. Like the 
creation of 'itemBeginPos' array, calculation of offsets etc. Those are not 
really needed for a BufferChain.  So may be it is not worth removing 
BufferChain.  Ya the gain is we will have one data structure only.  But why to 
pay the extra overhead?

> Unify BufferChain and MultiByteBuff
> -----------------------------------
>
>                 Key: HBASE-16327
>                 URL: https://issues.apache.org/jira/browse/HBASE-16327
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>            Priority: Minor
>
> Bufferchain is nothing but a collection of Bytebuffers. We already have 
> MultiBytebuff. May be we can unify both and add the Bufferchain#write() to 
> ByteBuff abstract class. 



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

Reply via email to