Is dmd fast?
Tofu Ninja via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jul 5 22:38:25 PDT 2016
On Wednesday, 22 June 2016 at 19:56:26 UTC, Adam D. Ruppe wrote:
> On Wednesday, 22 June 2016 at 19:25:13 UTC, Jack Stouffer wrote:
>> So if linking is slow, then compilation is slow.
>
> But, 1/3 second isn't slow... I don't feel compilation is slow
> until it takes more like 5 seconds. Certainly, 1/3s is
> noticable (if you do a hello world with printf instead of
> writeln you can feel the difference btw), but it isn't
> important.
>
> D compile speed typically *scales* better than the competition.
> Instead of chasing the 100ms in hello world, it tackles the
> 10000ms of a real project.
I have a >15000 LOC project that also depends on many dub
packages and uses a fair amount of CTFE. Even doing a full
rebuild, it still only takes roughly 10s. If I skip rebuilding
the dub dependencies then the time is usually cut in half. Over
all dmd seems pretty fast to me.
More information about the Digitalmars-d
mailing list