lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "karl wettin" <>
Subject Re: Hits syncronization
Date Sun, 16 Jul 2006 15:21:31 GMT
On 7/16/06, Mark Miller <> wrote:
> Does the Hits class need to use a Vector for it's cache? Is the cache
> somehow shared among threads or should this be an ArrayList to avoid
> synchronization costs? Also, I do not see any backing array size
> initialization. Is this because the default of 10 is optimal? Am I wrong
> all over the place?

The Vector in Hits (Document, RAMDirectory and many more places) are
artifacts from the early days of Lucene (and Java). There has been
some discussion on if they should be replaced or not, but never got

You can safely change it to a JCF-list of your preference.

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

View raw message