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

speed up DocValuesConsumer.mergeNumericField

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.10, 6.0
    • None
    • None
    • 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

        1. LUCENE-5799.patch
          2 kB
          Robert Muir

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: