You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by sam s <ta...@hotmail.com> on 2004/10/07 18:59:38 UTC

Analyzer reuse

Hi,
Can instance of an analyzer be reused?
If yes then will it give any performance gain?

sam

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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


Re: Analyzer reuse

Posted by Justin Swanhart <gr...@gmail.com>.
Yes you can reuse analyzers.  The only performance gain will come from
not having to create the objects and not having garbage collection
overhead.  I create one for each of my index reading threads.

On Thu, 07 Oct 2004 16:59:38 +0000, sam s <ta...@hotmail.com> wrote:
> Hi,
> Can instance of an analyzer be reused?
> If yes then will it give any performance gain?
> 
> sam
> 
> _________________________________________________________________
> Add photos to your messages with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 
>

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