Why is D's GC slower than GO's?

Walter Bright newshound2 at digitalmars.com
Sat Oct 29 08:53:34 UTC 2022


On 10/29/2022 1:12 AM, Piotr Duda wrote:
> If by "write gates" You mean additional code generated for every write, then you 
> don't need it, You can use GetWriteWatch (on windows) or mprotect and signal 
> handling (on linux, and probably other posix compliant OSes) to get list of 
> modified pages on GC heap.

I once tried an implementation that would set the virtual page to read-only, and 
then capture the seg fault when it was written to. This turned out to be quite a 
bit slower.

Hey, I have no problem with being wrong. I welcome a design for a better GC.

Go ahead, make my day :-)


More information about the Digitalmars-d mailing list