Re: Perf comparision for MMapDirectory Vs NIOFSDirectory

2025-05-23 Thread ashwini singh
Thanks! On Wed, 21 May 2025 at 23:35, Adrien Grand wrote: > Hello Ashwini, > > MMapDirectory will often perform a bit faster. While NIOFSDirectory needs > to first copy data from the buffer cache to heap arrays, MMapDirectory can > read directly into the buffer cache. > > Lucene's benchmark suit

Re: Perf comparision for MMapDirectory Vs NIOFSDirectory

2025-05-21 Thread Adrien Grand
Hello Ashwini, MMapDirectory will often perform a bit faster. While NIOFSDirectory needs to first copy data from the buffer cache to heap arrays, MMapDirectory can read directly into the buffer cache. Lucene's benchmark suite allows comparing these two directories. I haven't done so recently, but

Perf comparision for MMapDirectory Vs NIOFSDirectory

2025-05-21 Thread ashwini singh
As per Lucene documentation there is not much difference between these 2 implementations and users should use the Open() method and Lucene choses the best implementation based on the system. https://lucene.apache.org/core/9_7_0/core/org/apache/lucene/store/FSDirectory.html Is there any perf impa