Mac Apps That Use Garbage Collection Must Move to ARC

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sat Feb 21 18:23:40 PST 2015


On 2/21/2015 12:22 PM, deadalnix wrote:
> You get the usual tradeof of RC vs GC :
>   - RC is more predictable.
>   - RC has less floating garbage, so usually a lower memory foot print.
>   - RC usually increase cache pressure as you need to have reference count ready
> and hot.
>   - RC behave (very) poorly when reference are shared across cores, as they ill
> compete for cache lines. It tends to be faster in single threaded mode, but that
> depends on the type of application (graph manipulation for instance, tend to
> behave poorly with RC).
>   - RC can leak.
>   - RC is unsafe without ownership.

- RC is slower overall
- RC has further performance and code bloat problems when used with exception 
handling


More information about the Digitalmars-d mailing list