toString refactor in druntime
David Nadlinger via Digitalmars-d
digitalmars-d at puremagic.com
Sat Nov 1 10:04:32 PDT 2014
On Saturday, 1 November 2014 at 12:31:15 UTC, Dicebot wrote:
> It is not the same thing as ref/out buffer argument. We have
> been running ping-pong comments about it for a several times
> now. All std.internal.scopebuffer does is reducing heap
> allocation count at cost of stack consumption (and switching to
> raw malloc for heap) - it does not change big-O estimate of
> heap allocations unless it is used as a buffer argument - at
> which point it is no better than plain array.
Agreed. Its API also has severe safety problems.
David
More information about the Digitalmars-d
mailing list