Review/std.buffer.scopebuffer

From D Wiki
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