Safe reference counting cannot be implemented as a library
rsw0x via Digitalmars-d
digitalmars-d at puremagic.com
Sun Nov 1 13:40:19 PST 2015
On Sunday, 1 November 2015 at 20:55:00 UTC, Martin Nowak wrote:
> On 11/01/2015 09:51 PM, Martin Nowak wrote:
>> Any hint/numbers showing that this is actually useful?
>
> Also doesn't a good backend optimizer already fuse writes?
AFAIK the fear of RC being too slow comes from C++'s shared_ptr's
reference count being required to be synchronized by the C++
spec, which heavily limits what kinds of optimizations that can
be done on it. Thread-local by default RC should, in theory, be
able to be optimized much much more aggressively.
More information about the Digitalmars-d
mailing list