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

FixedIntBlockIndexOutput encodes unnecessary integers at the end of a list

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: 4.9, 6.0
    • Component/s: core/index
    • Labels:
    • Lucene Fields:
      New

      Description

      At closing time, the current FixedIntBlockIndexOutput flushes blocks of blockSize even if there is only a few integers in the block.
      This can be problematic and causes a big overhead when using large blockSize (e.g., 1024), on small segments or on rare term posting list.

      One solution will be to have a secondary flushBlock method with an additional paramter: the valid length of a buffer. This method will be only called in the FixedIntBlockIndexOutput#close() method.
      The way this particular block of integers are encoded are left to subclasses.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              renaud.delbru Renaud Delbru
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: