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

Additional memory savings in CompressingStoredFieldsIndex.MEMORY_CHUNK

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.1, 6.0
    • None
    • None
    • New

    Description

      Robert had a great idea to save memory with CompressingStoredFieldsIndex.MEMORY_CHUNK: instead of storing the absolute start pointers we could compute the mean number of bytes per chunk of documents and only store the delta between the actual value and the expected value (avgChunkBytes * chunkNumber).

      By applying this idea to every n(=1024?) chunks, we would even:

      • make sure to never hit the worst case (delta ~= maxStartPointer)
      • reduce memory usage at indexing time.

      Attachments

        1. LUCENE-4512.patch
          22 kB
          Adrien Grand
        2. LUCENE-4512.patch
          20 kB
          Adrien Grand

        Activity

          People

            jpountz Adrien Grand
            jpountz Adrien Grand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: