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