Study: build times for D programs

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Jul 25 15:34:07 PDT 2012


On 7/25/12, Jonathan M Davis <jmdavisProg at gmx.com> wrote:
> D should actually compile _faster_ if you compile everything at once -
> certainly for smaller projects - since it then only has to lex and parse
> each
> module once. Incremental builds avoid having to fully compile each module
> every time, but there's still plenty of extra lexing and parsing which goes on.

That's assuming that the lexing/parsing is the bottleneck for DMD. For
example: a full build of  WindowsAPI takes 14.6 seconds on my machine.
But when compiling one module at a time and using parallelism it takes
7 seconds instead. And all it takes is a simple parallel loop.


More information about the Digitalmars-d mailing list