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

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

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 4.0-ALPHA
    • None
    • core/store
    • None
    • 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)

      Attachments

        Activity

          People

            uschindler Uwe Schindler
            uschindler Uwe Schindler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: