The internal array copy happens each time the array is grown, and by default
it is grown by doubling with an initial size of 10, so the array copy
happens log2(final size-10) times.

EJP

----- Original Message ----- 
From: "Kevin A. Burton" <[EMAIL PROTECTED]>
To: "Lucene Users List" <[EMAIL PROTECTED]>
Sent: Friday, February 20, 2004 2:20 PM
Subject: Re: Vector -> LinkedList for performance reasons...


> The major problem is not just the synchronization but also the Vector
> array copy when when the internal object array is exhausted.  Looking at
> the code I expect that this happens often.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to