Linking is the slowest part of D's compilation process– can we use mold to speed it up?

Imperatorn johan_forsberg_86 at hotmail.com
Wed Feb 24 22:12:03 UTC 2021


On Wednesday, 24 February 2021 at 20:48:49 UTC, Petar Kirov 
[ZombineDev] wrote:
> On Wednesday, 24 February 2021 at 20:05:17 UTC, Imperatorn 
> wrote:
>> On Tuesday, 23 February 2021 at 14:41:59 UTC, James Lu wrote:
>>> Linking is the slowest part of D's compilation process. It is 
>>> what makes its compilation speed uncompetitive with 
>>> interrpreted scripting languages like Python and JavaScript.
>>>
>>> This project to make a faster linker is in alpha: 
>>> https://github.com/rui314/mold
>>>
>>>> [...]
>>>
>>>> [...]
>>
>> Have you looked at gold or lld?
>
> From the readme file:
>
>> LLVM's lld, the fastest open-source linker which I originally 
>> created a few years ago, takes about 12 seconds to link 
>> Chromium on my machine. So the goal is 12x performance bump 
>> over lld. Compared to GNU gold, it's more than 50x.

👍

We should indoctrinate this rui314 to use D! 😁


More information about the Digitalmars-d mailing list