Tasks, actors and garbage collection
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Mon Apr 26 12:54:37 UTC 2021
On Monday, 26 April 2021 at 11:33:48 UTC, Dominikus Dittes
Scherkl wrote:
> In fact: it doesn't matter if the GC is slow and imperfect. 90%
> of the code is executed so rarely that bad GC just has no
> measurable effect. And in the remaining 10% you can turn it off.
Well, it does matter if you have to halt 8-32 threads when
scanning all memory that may contain pointers. If that is the
only option then automatic reference counting with optimization
is a better choice, but I think a mix of task-local GC og global
RC (with optimization) is a reasonable trade-off.
More information about the Digitalmars-d
mailing list