dmd makes D appear slow

weaselcat via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 3 04:06:38 PDT 2015


On Wednesday, 3 June 2015 at 09:21:55 UTC, Ola Fosheim Grøstad 
wrote:
> On Wednesday, 3 June 2015 at 07:05:37 UTC, Dicebot wrote:
>> It is impossible for C++ to compile faster than D by design. 
>> Any time it seems so you either aren't comparing same thing or 
>> get misinformed. Or do straightforward separate compilation.
>
> There are lots of features in D, that C++ does not have, that 
> will make separate compilation and partial 
> evaluation/incomplete types difficult. So C++ is faster than D 
> by design, even when the compiler isn't.

LDC seems to manage separate compilation just fine, I use it for 
my projects at least. in my tests I find it to be 110-150% faster 
than all at once.

it can get even better if you properly modularize your projects 
instead of having 1-2 files that build slow, which causes a lot 
of waiting.


More information about the Digitalmars-d mailing list