How fast is D compilation compared to C++?

Ali Çehreli acehreli at yahoo.com
Tue Sep 20 16:13:30 UTC 2022


D's CTFE can make D compilation infinitely slow. Let's put anomalous 
cases aside...

We say D compiles much faster than C++. Does anyone have any measurement 
or a gut feeling about the same program written in idiomatic C++ vs. 
idiomatic D? I think it may be 30 seconds vs. 5 seconds. I that a fair 
guess?

Although a ballpark figure is good enough, precise measurements would be 
useful as well.

Thank you,
Ali



More information about the Digitalmars-d mailing list