[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: array vector spare size
- From: Axel Kittenberger <axkibe@...>
- Date: Fri, 28 Jan 2011 19:53:23 +0100
On Fri, Jan 28, 2011 at 7:08 PM, Henning Diedrich <hd2010@eonblast.com> wrote:
> Hi list,
>
> does anybody have a good understanding of how much memory can be expected to
> be wasted at worst in the array vector of tables?
If understood the code correctly, waste should never be more than 100%
(that is at least half the allocated vector is used). That for itself
is pretty standard meassurement for pure vectors across languages,
which most often realloc double on exceeding current limit.