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

Speed up SegementDocsEnum by making it more friendly for JIT optimizations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0-ALPHA
    • 4.0-ALPHA
    • core/codecs, core/search
    • None
    • New, Patch Available

    Description

      Since we moved the bulk reading into the codec ie. make all bulk reading codec private in LUCENE-3584 we have seen some performance regression on different CPUs. I tried to optimize the implementation to make it more eligible for runtime optimizations, tried to make loops JIT friendly by moving out branches where I can, minimize member access in all loops, use final members where possible and specialize the two common cases With & Without LiveDocs.

      I will attache a patch and my benchmark results in a minute.

      Attachments

        1. LUCENE-3648.patch
          23 kB
          Simon Willnauer
        2. LUCENE-3648.patch
          24 kB
          Simon Willnauer
        3. LUCENE-3648.patch
          25 kB
          Simon Willnauer

        Activity

          People

            simonw Simon Willnauer
            simonw Simon Willnauer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: