Honey, I shrunk the build times

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 7 08:32:29 PDT 2015


On 6/7/15 2:36 AM, Jacob Carlborg wrote:
> On 2015-06-07 06:30, Andrei Alexandrescu wrote:
>
>> Thanks for asking. The situation before went like this: to build
>> libphobos2.a, the command would go like this (simplified to just a few
>> files and flags:
>>
>> dmd -oflibphobos2.a std/datetime.d std/conv.d std/algorithm/comparison.d
>> std/algorithm/iteration.d
>>
>> So all modules would go together in one command to build the library.
>> With the package-at-a-time approach, we build one directory at a time
>> like this:
>
> I'm wondering if the impovements would have been larger if Phobos had a
> more tree structure for the modules rather than a fairly flat structure.

Affirmative. Currently the duration of the build is determined by the 
critical path, which mainly consists of building std/*.d. -- Andrei



More information about the Digitalmars-d mailing list