Analyze a D file for imports

Maaaks via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 30 07:31:23 PDT 2015


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.


More information about the Digitalmars-d mailing list