This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]