From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11846 invoked by alias); 1 May 2008 20:41:21 -0000 Received: (qmail 11838 invoked by uid 22791); 1 May 2008 20:41:21 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 01 May 2008 20:41:02 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 7028F983D6; Thu, 1 May 2008 20:41:00 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 257B798366; Thu, 1 May 2008 20:41:00 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JrfaN-00080N-Am; Thu, 01 May 2008 16:40:59 -0400 Date: Thu, 01 May 2008 20:41:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: Marc Khouzam , gdb-patches@sourceware.org Subject: Re: [PATCH:MI] Return a subset of a variable object's children Message-ID: <20080501204059.GV22218@caradoc.them.org> Mail-Followup-To: Nick Roberts , Marc Khouzam , gdb-patches@sourceware.org References: <18452.24568.655617.907458@kahikatea.snap.net.nz> <6D19CA8D71C89C43A057926FE0D4ADAA042910A5@ecamlmw720.eamcs.ericsson.se> <18455.41299.899430.615138@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18455.41299.899430.615138@kahikatea.snap.net.nz> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-05/txt/msg00047.txt.bz2 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