MIT Technology Review: An Interview With Bjarne Stroustrup

zz zz at zz.com
Sun Dec 10 15:46:04 PST 2006


Frits van Bommel wrote:
> zz wrote:
> 
>> I wonder what would happen if dlmalloc was used as the base allocator 
>> in Ares or Phobos, would there be any improvement? (I just messed 
>> thing up when playing with phobos but will look into it again as for 
>> Ares the dsource site seems to be having problems).
> 
> 
> For Phobos, I don't think it would make much of a difference. AFAICT it 
> doesn't use malloc at all, except for COM objects. It requests pages 
> directly from the OS instead.
> So unless you use a lot of COM objects the difference will be negligible.
> IIRC Ares uses essentially the same GC so the same would apply.

Thanks for the clarification, it's a gray area for me.

I noticed a few calls to std.c.stdlib.malloc and family then assumed 
that something done at that level may make some difference.

Zz



More information about the Digitalmars-d mailing list