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

Should BlockMaxMaxscoreScorer rebuild its heap in bulk?

Details

    • Improvement
    • Status: Reopened
    • Minor
    • Resolution: Fixed
    • None
    • 9.3
    • core/search
    • None
    • New

    Description

      BMMScorer has to frequently rebuild its heap, and does do by clearing and then iteratively calling add. It would be more efficient to heapify in bulk. This is more academic than anything right now though since BMMScorer is only used with two-clause disjunctions, so it's sort of a silly optimization if it's not supporting a greater number of clauses.

      Attachments

        Issue Links

          Activity

            People

              gsmiller Greg Miller
              gsmiller Greg Miller
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 40m
                  40m