News for hackers. Stuff that matters.
Re:Apple M1 Ultra by nicoburns on Tuesday March 08, 2022 @04:29PM (#30607322)
https://github.com/rui314/mold would suggest otherwise. Massive speedups by multithreading the linker. I think traditional linkers just aren't highly optimised.
Re:Apple M1 Ultra by fivea on Wednesday March 09, 2022 @12:50AM (#30611328)
> https://github.com/rui314/mold would suggest otherwise.

Does it, though?

I mean, if you read that link you'll notice it boasts the linker's performance by comparing it with cp and how it's "so fast that it is only 2x slower than cp on the same machine."

Is cp supposed to be CPU-bound?

Re:Apple M1 Ultra by nicoburns on Wednesday March 09, 2022 @06:11AM (#30613262)
Yes, but that's for mold, which is multithreaded. The original context of this thread being the question of whether a linker would see speedups from multithreading. Most people are using traditional single-threaded linkers which are an order of magnitude slower than mold. The fact that mold is so much faster suggests that a linker does indeed see big speedups from multithreading.
Re:Apple M1 Ultra by rsynnott on Wednesday March 09, 2022 @05:07AM (#30612812)
The data the linker is running on will generally largely be in memory (in their posted example, which is a warm compile, completely in memory).