Difference between revisions of "Review/std.buffer.scopebuffer"

From D Wiki
Jump to: navigation, search
(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...")
 
(No difference)

Latest revision as of 12:40, 8 February 2014

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