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

speed up DocValuesConsumer.mergeNumericField

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.10, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      This method (used for both numeric docvalues and norms) is a little slow:

      • does some boxing for no good reason (can just use a boolean instead)
      • checks docsWithField always, instead of only when value == 0. This can cause unnecessary i/o.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rcmuir Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: