Analyze a D file for imports

Atila Neves via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 30 08:01:15 PDT 2015


On Tuesday, 30 June 2015 at 14:31:26 UTC, Maaaks wrote:
> On Tuesday, 30 June 2015 at 14:28:12 UTC, anonymous wrote:
>> On Tuesday, 30 June 2015 at 14:18:20 UTC, rsw0x wrote:
>>> [...]
>>
>> 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.

Build system you say?

https://github.com/atilaneves/reggae

Atila


More information about the Digitalmars-d mailing list