[ https://issues.apache.org/jira/browse/HBASE-17877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15965441#comment-15965441 ]
Lars Hofhansl commented on HBASE-17877: --------------------------------------- Also looking at the code (with offset, as in Hadoop and HBase) I wonder how efficient it is to call unsafe.getLong on an unaligned address (i.e. passing 1-7 as offset). Would it perhaps be better to read the first few bytes (if not aligned) and then switch to 8 bytes processing once we reach an aligned address? > Replace/improve HBase's byte[] comparator > ----------------------------------------- > > Key: HBASE-17877 > URL: https://issues.apache.org/jira/browse/HBASE-17877 > Project: HBase > Issue Type: Bug > Reporter: Lars Hofhansl > Assignee: Vikas Vishwakarma > Attachments: 17877-1.2.patch, 17877-v2-1.3.patch, > ByteComparatorJiraHBASE-17877.pdf > > > [~vik.karma] did some extensive tests and found that Hadoop's version is > faster - dramatically faster in some cases. > Patch forthcoming. -- This message was sent by Atlassian JIRA (v6.3.15#6346)