lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: FieldsReader synchronized access vs. ThreadLocal ?
Date Tue, 16 May 2006 20:16:38 GMT
Robert Engels wrote:
> It seems that in a highly multi-threaded server this synchronized method
> could lead to significant blocking when the documents are being retrieved?

Perhaps, but I'd prefer to wait for someone to demonstrate this as a 
performance bottleneck before adding another ThreadLocal.

Peter Keegan has recently demonstrated pretty good concurrency using 
mmap directory on four and eight CPU systems:

Peter also wondered if the SegmentReader.document(int) method might be a 
bottleneck, and tried patching it to run unsynchronized:

Unfortunately that did not improve his performance:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message