lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message