Re: Stdio.Buffer, need a way to revisit old positions in the output
"Stephen R. van den Berg" <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <[email protected]> |
Per Hedbor () @ Pike (-) importm?te f?r mailinglistan wrote: >> However, given the premises that Stdio.Buffer was/is for speed, >> then any solution that involves creating another object for this seems >> a bit wasteful. I.e. those are a lot of memory accesses (for creating >> the new object) whereas we only want a simple "pointer access" to past >> data. >The "pointers" would also be objects, since they need to support the >offsets changing when data is added to or read from the buffer. Yes, that would give one a full-blown-protect-you-from-havoc solution even if you don't know what you're doing with the buffer. I still think that that would be more overhead than desirable in high-efficiency buffer operations. -- Stephen.