buffered input

Tomek Sowiński just at ask.me
Sat Feb 5 17:53:41 PST 2011


Andrei Alexandrescu napisał:

> > I fear efficiency will get abstracted out. Say this is my internal buffer (pipes indicate front() slice):
> >
> > [ooo|oooooo|oo]
> >
> > Now I do appendToFront(3) -- how do you expose the expected front() without moving data?  
> 
> You do end up moving data, but proportionally little if the buffer is 
> large enough.

It still matters for frequent big munches. I'd like a minimum memory option if that's neccessary.

-- 
Tomek



More information about the Digitalmars-d mailing list