lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Engels" <reng...@ix.netcom.com>
Subject FieldsReader synchronized access vs. ThreadLocal ?
Date Tue, 16 May 2006 17:30:52 GMT
In SegmentReader, currently the access to FieldsReader.doc(n) is
synchronized (which is must be).

Does it not make sense to use a ThreadLocal implementation similar to the
TermInfosReader?

It seems that in a highly multi-threaded server this synchronized method
could lead to significant blocking when the documents are being retrieved?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message