RFC: std.json sucessor

Ola Fosheim Gr via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 22 23:53:36 PDT 2014


On Saturday, 23 August 2014 at 06:41:11 UTC, Walter Bright wrote:
> Scopebuffer is extensively used in Warp, and works very well. 
> The "hole" in the stack is not a significant problem.

Well, on a webserver you don't want to push out the caches for no 
good reason.

> You can always implement your own buffering system and pass it 
> in - that's the point, it's under user control.

My point is that you need compiler support to get good buffering 
options on the stack. Something like an @alloca_inline:

auto buffer = @alloca_inline getstuff();
process(buffer);

I think all memory allocation should be under compiler control, 
the library solutions are bound to be suboptimal, i.e. slower.


More information about the Digitalmars-d mailing list