std.allocator issues
rsw0x via Digitalmars-d
digitalmars-d at puremagic.com
Fri Feb 19 18:28:21 PST 2016
On Saturday, 20 February 2016 at 02:21:00 UTC, Steven
Schveighoffer wrote:
> I'm trying to use the std.experimental.allocator API more in my
> new io library, and I'm having a few stumbling points:
>
> 1. GCAllocator only allocates void, which is marked as
> containing pointers. This is no good for a stream buffer, and
> can severely harm performance.
This is pretty bad, GCAllocator should ideally be able to
optionally take type information when allocating and forward it
to the GC.
GC.malloc interface can take a typeinfo object, btw
More information about the Digitalmars-d
mailing list