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

improve speed of norms merging

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.10
    • None
    • None
    • New

    Description

      Today we use the following procedure:

      • track HashSet<Long> uniqueValues, until it exceeds 256 unique values.
      • convert to array, sort and assign ordinals to each one
      • create encoder map (HashMap<Long,Integer>) to encode each value.

      This results in each value being hashed twice... but the vast majority of the time people will just be using single-byte norms and a simple array is enough for that range.

      Attachments

        1. LUCENE-5797.patch
          5 kB
          Robert Muir

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: