Article: Increasing the D Compiler Speed by Over 75%

Leandro Motta Barros lmb at stackedboxes.org
Mon Jul 29 04:45:00 PDT 2013


This may be off topic, but here I go anyway...

Back in the school days, I joked that the Halting Problem is actually
easy to solve with a Turing Machine. Since a Turing Machine is a
theoretical device that exists only in our imagination, we can just
suppose that it is infinitely fast. So, we simply have to load our
program in the machine and run it. If the machine doesn't stop
immediately, it means that it will run forever.

And what does this have to do with DMD?

Well, I kinda have the same feeling when using it. For my ~10kloc
project, I still haven't felt a real need to use a real build system.
I just dmd *.d. If any measurable time passes without any error
message appearing in the console, I know that my compiled successfully
(and it is the linker that is running now).

BTW, 10kloc is not such a large codebase, but this is with DMD 2.063
anyhow, before those improvents ;-)

LMB





On Thu, Jul 25, 2013 at 3:03 PM, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> wrote:
> Vote up!
>
> http://www.reddit.com/r/programming/comments/1j1i30/increasing_the_d_compiler_speed_by_over_75/
>
> https://news.ycombinator.com/item?id=6103883
>
>
> Andrei


More information about the Digitalmars-d-announce mailing list