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

docvalue writeBlock gcd encode improve

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0, 8.10
    • core/codecs
    • None
    • New

    Description

      Lucene90DocValuesConsumer.writeBlock calculate bitsPerValue  as:

      final int bitsPerValue = DirectWriter.unsignedBitsRequired(max - min);
      

       it can use gcd in this place as:

      (max - min) / gcd
      

      Attachments

        1. LUCENE-10014.patch
          7 kB
          weizijun

        Activity

          People

            Unassigned Unassigned
            weizijun weizijun
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: