Phobos for Review: std.buffer.scopebuffer
Jacob Carlborg
doob at me.com
Fri Feb 7 12:11:16 PST 2014
On 2014-02-07 09:24, Walter Bright wrote:
> https://github.com/D-Programming-Language/phobos/pull/1911
>
> This adds a package std.buffer, and the first entry in that package,
> std.buffer.scopebuffer.
>
> ScopeBuffer is an OutputRange that sits on the stack, and overflows to
> malloc/free. It's designed to help in eliminating gc allocation by lower
> level functions that return buffers, such as std.path.buildPath(). With
> some judicious user tuning of the initial stack size, it can virtually
> eliminate storage allocation.
>
> Using it is @system, but the user of ScopeBuffer can be @trusted.
>
> An output range like this is a precursor to eliminating the excessive gc
> use by functions such as buildPath().
Since this is a completely new module, even new package, this should go
through the standard review process. That means:
* Add to review queue
* Generate documentation
* Do not create a pull request until the review is complete and the
module has been approved. This easy to to a comparison with Github
without having to create a pull request
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list