From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7017 invoked by alias); 10 Oct 2005 21:09:49 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6992 invoked by uid 22791); 10 Oct 2005 21:09:47 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 10 Oct 2005 21:09:47 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1EP4u1-0001bu-4r; Mon, 10 Oct 2005 17:09:45 -0400 Date: Mon, 10 Oct 2005 21:09:00 -0000 From: Daniel Jacobowitz To: David Lecomber Cc: gdb Subject: Re: Laziness Message-ID: <20051010210945.GA6154@nevyn.them.org> Mail-Followup-To: David Lecomber , gdb References: <1128978249.13892.22.camel@cpc2-oxfd8-3-0-cust199.oxfd.cable.ntl.com> <20051010205046.GA5362@nevyn.them.org> <1128979343.13892.25.camel@cpc2-oxfd8-3-0-cust199.oxfd.cable.ntl.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1128979343.13892.25.camel@cpc2-oxfd8-3-0-cust199.oxfd.cable.ntl.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-10/txt/msg00065.txt.bz2 On Mon, Oct 10, 2005 at 10:22:23PM +0100, David Lecomber wrote: > > > Should we really really be reading all that memory, just to print the > > > first element? I mean, not only is that slow, but it imposes a memory > > > overhead in the GDB too! > > > > Not really, for the latter complaint; we discard them as they're read > > in. > > Well, after they're read in, right? -- so that at peak it could be as > much as the memory of the actual array. No, as they're read in, one at a time, and compared to the previous element. -- Daniel Jacobowitz CodeSourcery, LLC