You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Yanjiu Huang <ja...@gmail.com> on 2014/07/01 11:34:53 UTC

Why not use MappedByteBuffer as IndexOutput for MMapDirectory ?

Hi,

Maybe there is some misunderstand about MMapDirectory and Directory for 
me. But when I go through the MMapDirectory source code, I find that the 
IndexOutput for it uses which wraps the FileOutputStream. Since we get 
the MappedByteBuffer when we try to read the index file, Can we shared 
that ByteBuffer to make write operation more efficient ?
I know the sharing between write and read operations would make it more 
complex, but I just want to whether it is better option for MMapDirectory.

If there is some problem, please feel free to tell me. Thank you.

BR.
Yanjiu

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org