On 7/25/12, Jonathan M Davis <[email protected]> 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.
