You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2022/06/16 16:59:00 UTC
[jira] [Closed] (HBASE-8452) Reduce byte copy in PrefixTreeSeeker
[ https://issues.apache.org/jira/browse/HBASE-8452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Kyle Purtell closed HBASE-8452.
--------------------------------------
> 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)