lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: ParallelMultiSearcher reimplementation
Date Fri, 03 Nov 2006 22:18:02 GMT
Chuck Williams wrote:
> Why would a thread pool be more controversial?  Dynamically creating and
> garbaging threads has many downsides.

The JVM already pools native threads, so mostly what's saved by thread 
pools is the allocation & initialization of new Thread instances.  There 
are also downsides to thread pools.  They alter ThreadLocal semantics 
and generally add complexity that may not be warranted.

Like most optimizations, use of thread pools should be motivated by 
benchmarks.

Doug

---------------------------------------------------------------------
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