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

Manukranth Kolloju commented on HBASE-11881:
--------------------------------------------

[~stack], this particular optimization is intended to cover up for the lack of 
thrift data structures of the type lists but backed by a single byte[]. 
For example,
struct result {
  list<keyvalue> kvs
}
struct keyvalue {
  byte[] data
}
will result in a lot more memory fragmentation.
Instead converting that result into the following would help produce a large 
buffer which can be more gc friendly.
struct kvlist {
  byte[] data
  list<int> kvindex
}

> Improve the swift structures for KeyValue lists
> -----------------------------------------------
>
>                 Key: HBASE-11881
>                 URL: https://issues.apache.org/jira/browse/HBASE-11881
>             Project: HBase
>          Issue Type: Bug
>          Components: Thrift
>    Affects Versions: 0.89-fb
>            Reporter: Manukranth Kolloju
>            Assignee: Manukranth Kolloju
>            Priority: Minor
>             Fix For: 0.89-fb
>
>
> With introduction of swift we have to build composite data structures that 
> can represent a list of KeyValues in a more efficient manner. This can be 
> used both in Put and the Result objects.



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

Reply via email to