buffered input

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Feb 5 06:52:43 PST 2011


On 2/5/11 2:22 AM, Ellery Newcomer wrote:
> Does shiftFront literally move element n to index 0 and so on? It seems
> to me that if you do, its going to have horrid performance, and if you
> don't, then you will eventually run into situations where appendToFront
> will require a wrap around, which loses you your contiguity, or a
> reallocation of the buffer.

No, it's a mere internal operation bufpos += n or so.

Andrei


More information about the Digitalmars-d mailing list