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

Reply via email to