Request for comments: std.d.lexer
Jacob Carlborg
doob at me.com
Mon Jan 28 01:05:43 PST 2013
On 2013-01-28 09:51, Johannes Pfau wrote:
> This sounds like a valid use case for buffered ranges (which we don't
> have yet, afaik). When used correctly you could avoid the appender
> completely. Instead slice the input buffer and copy it if necessary.
> (If the complete file is kept in memory copying could also be
> avoided)
If think slicing the buffer will force the whole buffer to remain in
memory and not be collected by the GC. If one keeps the whole buffer in
memory anyway this won't be a problem.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list