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

Matt Corgan commented on HBASE-9807:
------------------------------------

Sorry i didn't have any comments there.  For prefix-tree to benefit, we have to 
use the CellComparator, and pass Cell references up through these interfaces.

> block encoder unnecessarily copies the key for each reseek
> ----------------------------------------------------------
>
>                 Key: HBASE-9807
>                 URL: https://issues.apache.org/jira/browse/HBASE-9807
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Lars Hofhansl
>            Assignee: Lars Hofhansl
>             Fix For: 0.98.0, 0.94.13, 0.96.1
>
>         Attachments: 9807-0.94.txt, 9807-0.94-v2.txt, 9807-0.94-v3.txt, 
> 9807-trunk-v1.txt
>
>
> In HFileReaderV2.AbstractScannerV2.reseekTo(...) we have this:
> {code}
>         ByteBuffer bb = getKey();
>         compared = reader.getComparator().compare(key, offset,
>             length, bb.array(), bb.arrayOffset(), bb.limit());
> {code}
> {{getKey()}} creates two ByteBuffers in ScannerV2 and makes a deep copy of 
> the key in EncodedScannerV2.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to