lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <ysee...@gmail.com>
Subject Re: Why ThreadLocal?
Date Thu, 04 May 2006 16:21:02 GMT
On 5/4/06, Robert Engels <rengels@ix.netcom.com> wrote:
> In reviewing the code for bug 436
> (http://issues.apache.org/jira/browse/LUCENE-436)
>
> Why are we using a ThreadLocal for the enumeration at all?
>
> Since terms(), and terms(Term t) return new instances anyway, why not just
> have them clone the needed data structures?

Lock contention via use of the same reader from multiple threads, I think.

-Yonik
http://incubator.apache.org/solr Solr, the open-source Lucene search server

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


Mime
View raw message