Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-4012

Further optimize byte comparison methods

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.92.0
    • 0.92.0
    • util
    • None
    • 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.

      Attachments

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

        Issue Links

          Activity

            People

              yuzhihong@gmail.com Ted Yu
              tlipcon Todd Lipcon
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: