Apple and Microsoft should really throw some money at Rui; Mold is a massive improvement to developer experience, and the sooner it's ported to their platforms the better. I find myself defaulting to Linux for Rust development these days, mostly because Mold makes the inner loop of development so much faster.
Mold/macOS is 11 times faster than the Apple's default linker to link Chrome
11–20 of 120 posts
Re: Mold/macOS is 11 times faster than the Apple's default linker to link Chrome
#12Re: Mold/macOS is 11 times faster than the Apple's default linker to link Chrome
#13Author here. If you have any questions about mold/macOS, feel free to ask me as a reply.
Re: Mold/macOS is 11 times faster than the Apple's default linker to link Chrome
#14Apple and Microsoft should really throw some money at Rui; Mold is a massive improvement to developer experience, and the sooner it's ported to their platforms the better. I find myself defaulting to Linux for Rust development these days, mostly because Mold makes the inner loop of development so much faster.
Rui has made it explicit that a commercial license is available. Hey Rui, you should replace "please call" with a dollar amount in order to increase your conversion rate ;)
Re: Mold/macOS is 11 times faster than the Apple's default linker to link Chrome
#15Author here. If you have any questions about mold/macOS, feel free to ask me as a reply.
I see mold does not yet support LTO [1]. But if it were to, could we still expect performance gain over lld when doing LTO? [1] https://github.com/rui314/mold/issues/181
Re: Mold/macOS is 11 times faster than the Apple's default linker to link Chrome
#16Re: Mold/macOS is 11 times faster than the Apple's default linker to link Chrome
#17How do I learn about what’s being discussed here? Why do I need a linker?
https://github.com/rui314/mold#why-does-the-speed-of-linking...
Re: Mold/macOS is 11 times faster than the Apple's default linker to link Chrome
#18Author here. If you have any questions about mold/macOS, feel free to ask me as a reply.
Can mold also serve as a replacement for dsymutil (i.e. linking DWARF info)? If not, any plans to support this in the future? :)
Re: Mold/macOS is 11 times faster than the Apple's default linker to link Chrome
#19Apple and Microsoft should really throw some money at Rui; Mold is a massive improvement to developer experience, and the sooner it's ported to their platforms the better. I find myself defaulting to Linux for Rust development these days, mostly because Mold makes the inner loop of development so much faster.
Re: Mold/macOS is 11 times faster than the Apple's default linker to link Chrome
#20Earlier quoted context omitted.
Why is it so much faster?
The biggest reason is because it is multi-threaded. When building a program, the compilation step is parallelized (the build system invokes a compiler for each source file), but the final link step is not. So it is important to make the linker itself multi-threaded. But even without multi-threading, mold is still faster than other linkers. I can think of various reasons why, but I don't know which attributes how much…