proposal: GC.*partial*collect(Duration maxPauseTime, Duration maxCollectionTime)

Luis luis.panadero at gmail.com
Sun May 24 08:27:39 UTC 2020


On Tuesday, 19 May 2020 at 15:25:56 UTC, mw wrote:
> On Tuesday, 19 May 2020 at 05:59:17 UTC, rikki cattermole wrote:
>> We know what can be done, just nobody wants to do the work.
>> Our GC implementation isn't all that friendly even though it 
>> now supports fork'ing and can be precise.
>
> That’s exactly why I’m proposing just add a timeout to the 
> current gc algorithm, which periodically checks for early 
> return without finish a full collection. I hope the required 
> code change will be minimal. Then the users will have a much 
> predictable (stop-the-world) gc.

I think that the problem isn't that your idea is bad or nobody 
likes it. It's a good idea, and would be a nice improvement. The 
real problem is that there is nobody that would implement it.


More information about the Digitalmars-d mailing list