Would you pay for GC?
rikki at cattermole.co.nz
Tue Jan 25 09:29:18 UTC 2022
On 25/01/2022 10:23 PM, Ola Fosheim Grøstad wrote:
> On Tuesday, 25 January 2022 at 07:13:41 UTC, Paulo Pinto wrote:
>> If you are paying to replace GC with ARC, without putting the money to
>> reach Swift level of performance (which is still pretty lame versus
>> last gen tracing GCs in Java/.NET), then you will be getting lemons.
> With per fiber/task/actor ownership + unique_ptr you reduce the need to
> increase the refcount significantly.
With scope without ref or return it may even be possible to elide all
calls to reference counting except for the last decrement.
More information about the Digitalmars-d