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

Improve performance of SortedSetDV faceting by iterating on class types

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 9.1
    • 9.2
    • core/index
    • None
    • New

    Description

      While analysing various profiles, @grcevski and I can came across this potential improvement.

      SortedSetDV faceting (and friends), can improve performance within tight loops by using invokevirtual (rather than invokeinterface). The C2 JIT compiler can produce slightly more optimal code in this case, and since these loops are very hot, the impact can be significant (in the order of 10-30%).

      This issue is in some ways similar to, and builds upon, prior optimisations in this area, like say LUCENE-5300 or more recently LUCENE-5309

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ChrisHegarty Chris Hegarty
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h