This is the mail archive of the gdb@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: Laziness


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


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