Would you pay for GC?

rikki cattermole rikki at cattermole.co.nz
Fri Jan 28 04:14:25 UTC 2022


On 28/01/2022 10:11 AM, Era Scarecrow wrote:
> I'd almost prefer to set and have the GC with it's own thread/core where 
> it works at regular intervals; Recently having just gotten a 8 core 
> machine i can't seem to keep all my cores busy, even when trying hard.

We already do this (more or less).

     uint parallel = 99;      // number of additional threads for 
marking (limited by cpuid.threadsPerCPU-1)

https://github.com/dlang/druntime/blob/master/src/core/gc/config.d#L26


More information about the Digitalmars-d mailing list