On Tuesday, 30 June 2015 at 14:28:12 UTC, anonymous wrote:
On Tuesday, 30 June 2015 at 14:18:20 UTC, rsw0x wrote:
you're skipping the part where they can be ran in parallel, dmd sees no benefit from this.

Could you elaborate? Surely, one can run multiple instances of dmd in parallel, no?

In my (possibly flawed) understanding, to get the quickest compile one would then:
* Determine the optimal number of parallel processes.
* Split the source files into that many chunks.
* Run parallel instances of the compiler, one on each of those chunks.

I would try to do that but the reason I am going to write a build system is that my project (which contains too many imported HTML templates) requires too much memory to compile. So, I need also to think how not to make chunks require too much memory.

Reply via email to