You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by bu...@apache.org on 2005/07/24 05:28:04 UTC

DO NOT REPLY [Bug 35838] - Java NIO patch against Lucene 1.9

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=35838>.
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=35838





------- Additional Comments From clamprecht@gmail.com  2005-07-24 05:28 -------
Created an attachment (id=15757)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=15757&action=view)
Concurrency and NIO patch for lucene SVN trunk


NioFile: new class
NioFSDirectory: new class, extends FSDirectory, uses java's NIO classes

FSDirectory - changes for NioFSDirectory
* made init() method protected so NioFSDirectory can call it

IndexInput - changes for NioFSDirectory
* add readBytes() method that takes a position while preserving the
IndexInput's position (overridden in NioInputStream)


CONCURRENCY IMPROVEMENTS
------------------------
FieldsReader - concurrency improvements
* add and use ThreadStream inner class for istream and fstream (ThreadLocal
variables)

CompoundFileReader - concurrency improvements
* remove synchronized block in readInternal().	The sychronization is now in
IndexInput implementation.
  This allows subclasses (such as NioFSDirectory.NioIndexInput) to NOT use
sychronized blocks for better concurrency.
	  
SegmentReader - concurrency improvement
* removed synchronized from isDeleted() by getting a copy of the reference
instead


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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