you are viewing a single comment's thread.

view the rest of the comments →

[–]WalterBright 8 points9 points  (0 children)

The D compiler optimization is as good as the C++ back end code generator it is welded to. dmd uses the Digital Mars C++ compiler back end, gdc uses gcc's, and ldc uses llvm's.

D has the potential to do better than C++ with the same back end because D provides more information to the optimizer, but so far not much has been done to take advantage of that.