Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-7761

Improve performance of raw comparisons

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.0
    • 0.23.1
    • io, performance, util
    • None
    • Reviewed

    Description

      Guava has a nice implementation of lexicographical byte-array comparison that uses sun.misc.Unsafe to compare unsigned byte arrays long-at-a-time. Their benchmarks show it as being 2x more CPU-efficient than the equivalent pure-Java implementation. We can easily integrate this into WritableComparator.compareBytes to improve CPU performance in the shuffle.

      Attachments

        1. hadoop-7761.txt
          10 kB
          Todd Lipcon
        2. hadoop-7761.txt
          10 kB
          Todd Lipcon
        3. hadoop-7761.txt
          9 kB
          Todd Lipcon
        4. hadoop-7761.txt
          8 kB
          Todd Lipcon

        Issue Links

          Activity

            People

              tlipcon Todd Lipcon
              tlipcon Todd Lipcon
              Votes:
              0 Vote for this issue
              Watchers:
              21 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: