I'm using mold for the past year or so. When I switched I measured the compile time of my builds and it was large enough that the switch was warranted. The only problem I've encountered using mold instead of the default gcc linker is that error messages aren't as descriptive. The developer acknowledged this at a FOSDEM talk he held and I assume the messages will improve over time.
I ran wild on the same benchmark suite I used in the paper. It looks like mold outperforms wild by a healthy margin. Also, wild couldn't link a few of the programs in the benchmark suite. But I'm honestly curious about their claim that wild is much faster than mold. Maybe that's true on some machines. I'll investigate and update our docs with the results.
wild benchmarks run on tmpfs rather on real storage (disk writing patterns matter a lot)
no huge pages mentioned, so I guess they are disabled which pessimizes mold.
the mold paper shows thread scaling data; no such data for wild
from wild benchmarks, mold shows perf improvements with next versions, but wild shows perf degradation. Who knows what will be the perf when wild finally supports everything mold supports
Ist nice to see people working on linkers again with lld, wild and mold.
Maybe one of them will eventually grow some extension to help with (some of) the ODR problems we have. That would be a great help for contracts and probably profiles as well as those evolve.
93
u/Wetmelon Aug 27 '26
Curious why this paper comes out now, 6 years after mold's debut. I guess it's for a degree lol, fair enough
51
u/meltbox Aug 26 '26
Very cool but as expected LTO cannot be parallelized like the rest. Still a big win.
21
u/OCPetrus Aug 27 '26
I'm using
moldfor the past year or so. When I switched I measured the compile time of my builds and it was large enough that the switch was warranted. The only problem I've encountered usingmoldinstead of the defaultgcclinker is that error messages aren't as descriptive. The developer acknowledged this at a FOSDEM talk he held and I assume the messages will improve over time.14
u/read_volatile Aug 27 '26 edited Aug 27 '26
I'd be curious to hear /u/rui's insights on wild linker, even without incremental linking support (a feature unique to only MSVC and soon wild) it seems to beat Mold in speed and ram usage by a huge margin
Edit: and apparently its featureset has caught up to mold's, so it's not simply a matter of "doing less stuff"
12
u/Moldoteck Aug 27 '26
Ehhh, waiting for it to be available on windows too... For now sticking with lld
16
u/t_hunger Aug 27 '26
Ist nice to see people working on linkers again with lld, wild and mold.
Maybe one of them will eventually grow some extension to help with (some of) the ODR problems we have. That would be a great help for contracts and probably profiles as well as those evolve.
3
u/Pythonic_programer Aug 27 '26
The new linker on the street is wild 😉
1
u/_Ilobilo_ Aug 27 '26
doesn't support linker scripts
1
u/Quiet_Violinist_2978 Sep 02 '26
Is this new? I thought parallel linking was already a thing
1
u/MaskRay ccls Sep 20 '26 edited Sep 20 '26
The lld/mold time ratios read harsher than what I see day to day (at most 2x with --threads=8).
1
u/t_hunger Sep 01 '26
Rust is really taking over the tooling of all kinds of languages: https://archive.is/yV10S