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

Speed up SegementDocsEnum by making it more friendly for JIT optimizations

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: 4.0-ALPHA
    • Component/s: core/codecs, core/search
    • Labels:
      None
    • Lucene Fields:
      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
          25 kB
          Simon Willnauer
        2. LUCENE-3648.patch
          24 kB
          Simon Willnauer
        3. LUCENE-3648.patch
          23 kB
          Simon Willnauer

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: