Re: Laziness

Daniel Jacobowitz
2005-10-10T21:09:49Z

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