You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Vikas Vishwakarma (JIRA)" <ji...@apache.org> on 2017/04/17 02:21:41 UTC

[jira] [Created] (HADOOP-14313) Replace/improve Hadoop's byte[] comparator

Vikas Vishwakarma created HADOOP-14313:
------------------------------------------

             Summary: Replace/improve Hadoop's byte[] comparator
                 Key: HADOOP-14313
                 URL: https://issues.apache.org/jira/browse/HADOOP-14313
             Project: Hadoop Common
          Issue Type: Improvement
          Components: common
            Reporter: Vikas Vishwakarma


Hi,
Recently we were looking at the Lexicographic byte array comparison in HBase. We did microbenchmark for the byte array comparator of HADOOP, HBase Vs the latest byte array comparator from guava  ( https://github.com/google/guava/blob/master/guava/src/com/google/common/primitives/UnsignedBytes.java#L362 ) and observed that the guava main branch version is much faster. 
Specifically we see very good improvement when the byteArraySize%8 != 0 and also for large byte arrays. I will update the benchmark results using JMH for Hadoop vs Guava. For the jira on HBase, please refer HBASE-17877. 




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org