lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: TermFreqVector
Date Wed, 28 Apr 2004 16:20:56 GMT
Christoph Goller wrote:
> However outside the package only the public 
> constructor of Term can be called, which does the field.intern(). I 
> donĀ“t know how expensive the call to intern() really is. Maybe my 
> worries are irrelevant.

String.intern() is just a hash table lookup in most cases, and Java hash 
tables are pretty fast.  The constructor and object allocation will 
easily dominate this.

Doug

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


Mime
View raw message