Lucene - Core
  1. Lucene - Core
  2. LUCENE-3924

Optimize buffer size handling in RAMDirectory to make it more GC friendly

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: 4.9, 5.0
    • Component/s: core/store
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      RAMDirectory currently uses a fixed buffer size of 1024 bytes to allocate memory. This is very wasteful for large indexes. Improvements may be:

      • per file buffer sizes based on IOContext and maximum segment size
      • allocate only one buffer for files that are copied from another directory
      • dynamically increae buffer size when files grow (makes seek() complicated)

        Activity

          People

          • Assignee:
            Uwe Schindler
            Reporter:
            Uwe Schindler
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development