HBase
  1. HBase
  2. HBASE-4012

Further optimize byte comparison methods

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.92.0
    • Fix Version/s: 0.92.0
    • Component/s: util
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Guava uses some clever tricks with sun.misc.Unsafe to compare byte arrays about 100% faster than the naive byte-by-byte implementation: http://guava-libraries.googlecode.com/svn/trunk/guava/src/com/google/common/primitives/UnsignedBytes.java

      We should borrow this [Apache 2 licensed] code.

      1. 4012-v2.txt
        11 kB
        Ted Yu
      2. 4012.txt
        4 kB
        Ted Yu

        Issue Links

          Activity

          Todd Lipcon created issue -
          Todd Lipcon made changes -
          Field Original Value New Value
          Labels noob
          Ted Yu made changes -
          Assignee Todd Lipcon [ tlipcon ] Ted Yu [ yuzhihong@gmail.com ]
          Ted Yu made changes -
          Attachment 4012.txt [ 12484449 ]
          Ted Yu made changes -
          Attachment 4012-v2.txt [ 12484486 ]
          Ted Yu made changes -
          Attachment 4012-v2.txt [ 12484486 ]
          Ted Yu made changes -
          Attachment 4012-v2.txt [ 12484497 ]
          Ted Yu made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Resolution Fixed [ 1 ]
          Andrew Purtell made changes -
          Link This issue relates to HADOOP-7761 [ HADOOP-7761 ]
          Andrew Purtell made changes -
          Labels noob

            People

            • Assignee:
              Ted Yu
              Reporter:
              Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development