[
https://issues.apache.org/jira/browse/HBASE-8452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Kyle Purtell resolved HBASE-8452.
----------------------------------------
Assignee: (was: Chunhui Shen)
Resolution: Won't Fix
> Reduce byte copy in PrefixTreeSeeker
> ------------------------------------
>
> Key: HBASE-8452
> URL: https://issues.apache.org/jira/browse/HBASE-8452
> Project: HBase
> Issue Type: Improvement
> Components: regionserver
> Affects Versions: 0.95.0
> Reporter: Chunhui Shen
> Priority: Major
> Attachments: hbase-8452-trunkv1.patch
>
>
> In PrefixTreeSeeker, I think we could do two improvement for deep copy of
> byte.
> 1.
> {code}
> PrefixTreeSeeker#getKeyValue(){
> KeyValueUtil.copyToNewKeyValue(ptSearcher.current());
> }
> {code}
> This method will be called frequently when reading. e.g. Scanner#peek(),
> Scanner comparison in KeyValueHeap
> 2.
> {code}
> PrefixTreeSeeker#seekToOrBeforeUsingPositionAtOrBefore(){
> KeyValue.createKeyValueFromKey(keyOnlyBytes, offset, length);
> }
> PrefixTreeSeeker#seekToOrBeforeUsingPositionAtOrAfter(){
> KeyValue.createKeyValueFromKey(keyOnlyBytes, offset, length);
> }
> {code}
> Solution:
> 1.Using a cache for seeker's current keyvalue.
> 2.Importing new KeyOnlyCell class without coping bytes.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)