Mac Apps That Use Garbage Collection Must Move to ARC

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 25 16:36:22 PST 2015


On 2/25/2015 1:50 PM, deadalnix wrote:
> On Wednesday, 25 February 2015 at 21:44:05 UTC, Andrei Alexandrescu wrote:
>>> You seeing this completely one sided. Even if write barries make code
>>> slower by 10% its a non issue if the GC collections get faster by 10% as
>>> well. Then in average the program will run at the same speed.
>>
>> Hmmmm... not sure the math works out that way. -- Andrei
>
> Yeah the math are wrong, but the general idea remains.
>
> I don't think it make sens to completely discard the idea of barriers,
> especially when it come to write barrier on the immutable heap. At least that
> should certainly pay off.

Part of the equation is D simply does not use GC anywhere near as pervasively as 
Java does, so the benefit/cost is greatly reduced for D.


More information about the Digitalmars-d mailing list