Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-3654

Optimize BytesRef comparator to use Unsafe long based comparison (when possible)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Implemented
    • None
    • None
    • core/index, core/search
    • None
    • New

    Description

      Inspire by Google Guava UnsignedBytes lexi comparator, that uses unsafe to do long based comparisons over the bytes instead of one by one (which yields 2-4x better perf), use similar logic in BytesRef comparator. The code was adapted to support offset/length.

      Attachments

        1. LUCENE-3654.patch
          27 kB
          Shay Banon

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kimchy Shay Banon
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: