On Wed, Jan 13, 2010 at 8:53 AM, DM Smith <dmsmith...@gmail.com> wrote: > The pattern that is stated in the comment only occurs under a very > specific situation: The growing of an array one element at a time > and reallocation only when the current is exceeded.
Ahh -- that works -- thanks for clarifying. So if you start with 0, call getNextSize, then call it again on 1+ what it had returned (and repeat), it creates the pattern in the comment. So the comment is correct, for the case where you keep appending a single element to the array (and start from size 0). Mike --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org