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

IGotD- nise at nise.com
Sat Oct 29 20:26:51 UTC 2022


On Saturday, 29 October 2022 at 19:55:31 UTC, Walter Bright wrote:
>
> Consider:
>
>      strcpy(char* p, const(char)* q)
>
> Now consider managed:
>
>      strcpy(char* p, const(char)* q)
>      strcpy(char* p, managed(const(char)*) q)
>      strcpy(managed(char*) p, const(char)* q)
>      strcpy(managed(char*) p, managed(const(char)*) q)
>
> It's quite different.
>

You are aware that you can always obtain a raw pointer from 
managed pointer right? Which be useful for FFI functions.


More information about the Digitalmars-d mailing list