lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30685] - [PATCH] store.InputStream with reduced buffer requirements
Date Wed, 29 Sep 2004 07:49:25 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30685>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30685

[PATCH] store.InputStream with reduced buffer requirements





------- Additional Comments From paul.elschot@xs4all.nl  2004-09-29 07:49 -------
Doug just committed MMapDirectory.java with this clone(): 
 
      public Object clone() { 
        MMapIndexInput clone = (MMapIndexInput)super.clone(); 
        clone.isClone = true; 
        clone.buffer = buffer.duplicate(); 
        return clone; 
      } 
 
As buffer.duplicate() shares the buffer content,  
reducing the buffer requirements of InputStream is now obsolete. 
 
The only thing left is a documentation note for the max. nr. 
of clauses in a BooleanQuery that for a MMapDirectory the buffering 
is left to the operating system.

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


Mime
View raw message