Re: [PATCH:MI] Return a subset of a variable object's children

Daniel Jacobowitz
2008-05-01T20:41:21Z

Still reading the rest of the thread, but...

On Wed, Apr 30, 2008 at 10:29:39AM +1200, Nick Roberts wrote:
> > but only actually create the children that have been requested by the user.
> > I'm not sure how much efficiency there is by allocating the memory before
> > hand? Also, is there no way to grow the vector by more than a single point
> > at a time?
>
> Like resize with STL vectors? I'm not aware of one.

VEC_reserve and VEC_quick_push. There's no clean way to memset
the new elements but this will cut down on allocation anyway.

--
Daniel Jacobowitz
CodeSourcery