lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Timm <>
Subject Re: [jira] Commented: (LUCENE-937) Make CachingTokenFilter faster
Date Fri, 22 Jun 2007 13:57:49 GMT
HashMap defaults to 16, but ArrayList defaults to 10.  He probably got 
those confused.  I'm not sure how Sun came up with the default values.


Mark Miller (JIRA) wrote:
> A friend was recently telling me that ArrayList defaulted to 16, but it does not -- it
defaults to 10. He must have been confused and known that it *should* default to 16. 16 is
a much better default number than 10 due to the exponential growth when doubling the array
on resize. It may take a bit more memory, but it gets a LOT more speed.

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

View raw message