Lucene - Core
  1. Lucene - Core
  2. LUCENE-3648

Speed up SegementDocsEnum by making it more friendly for JIT optimizations

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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.

      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

        Simon Willnauer created issue -
        Simon Willnauer made changes -
        Field Original Value New Value
        Attachment LUCENE-3648.patch [ 12507353 ]
        Simon Willnauer made changes -
        Assignee Simon Willnauer [ simonw ]
        Simon Willnauer made changes -
        Attachment LUCENE-3648.patch [ 12507495 ]
        Simon Willnauer made changes -
        Attachment LUCENE-3648.patch [ 12507521 ]
        Simon Willnauer made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development