Why is D significantly slower than C# in this instance?

ryuukk_ ryuukk.dev at gmail.com
Mon Apr 10 23:26:39 UTC 2023


Please format your code using markdown syntax


```D
// your code here
```


Also please share the  exact code you benchmark, the one you 
shared is incomplete


As other mentioned you are building in debug mode, dmd is not 
suited for performance, it's favors compile speed instead


As other mentioned please use LDC on windows/unix or GDC on unix 
with proper release flag: -O2 for LDC for example


More information about the Digitalmars-d mailing list