A Detailed Look At The Speed Advantages To LLVM's LLD Linker
The LLVM Linker "LLD" has slowly been gaining more ground as developers try it out as a drop-in replacement to the GNU system linkers. What turns on many developers to LLD is the often "lightning fast" performance compared to the GNU linkers, even the Gold linker.
Linaro's Peter Smith recently took an extensive look at LLD relative to the other linkers on Linux systems to get a better understanding for the performance advantages and figuring out why that's the case.
Smith found LLD was faster than the Gold linker by two to three times while faster than the standard ld.bfd linker by five to ten times.
Among the reasons why LLD is so much faster comes down to its threading model, continuously evaluating its performance with code changes, a custom memory allocator, more efficient data structures, and other design choices.
Those wanting to look more into the LLD performance advantages for linking can find the detailed notes by Peter Smith. There is also this WebM recording presenting his findings.
Those that haven't explored LLD previously can learn more about LLVM's linker on its project site.
Linaro's Peter Smith recently took an extensive look at LLD relative to the other linkers on Linux systems to get a better understanding for the performance advantages and figuring out why that's the case.
Smith found LLD was faster than the Gold linker by two to three times while faster than the standard ld.bfd linker by five to ten times.
Among the reasons why LLD is so much faster comes down to its threading model, continuously evaluating its performance with code changes, a custom memory allocator, more efficient data structures, and other design choices.
Those wanting to look more into the LLD performance advantages for linking can find the detailed notes by Peter Smith. There is also this WebM recording presenting his findings.
Those that haven't explored LLD previously can learn more about LLVM's linker on its project site.
14 Comments