Review/std.buffer.scopebuffer

From D Wiki
Revision as of 12:40, 8 February 2014 by Dicebot (talk | contribs) (Created page with "== Description == [https://github.com/D-Programming-Language/phobos/pull/1911 std.buffer.scopebuffer] is a package with single initial module authored by Walter Bright. Scop...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

std.buffer.scopebuffer is a package with single initial module authored by Walter Bright.

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.

Related links

Initial announcement

Current state

Early discussion / review stage, preparation for formal review