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