top | item 34267053

(no title)

salusinarduis | 3 years ago

Question for people that read deep into these things. What is the best CPU for the linker stage of compiling? I would assume these high performing single core "gaming" CPUs would do well, but I must admit I care a lot about power efficiency as well. I have a 3900x and love that CPU for nearly everything but waiting on optimized builds.

discuss

order

duped|3 years ago

The problem is that most default linkers don't scale well with core count, and throwing hardware at the problem is kind of a waste of money since single core execution speeds only present marginal gains. If you use a linker like mold instead of ld you'll see orders of magnitude higher performance.

Also throw the guy a few bucks if you're on MacOS

sagarm|3 years ago

Clang's lld also uses multiple threads. The author of mold also contributed (contributed?) to lld.

redox99|3 years ago

i9 13900k or r9 7950x. As far as I remember the compile benchmarks were worse on the 5800x3d than the 5800x.

7950x is more efficient than 13900k, so that's your answer. Idle usage ryzen is often worse than intel though, so pick your poison.

philliphaydon|3 years ago

I went Intel 12th gen and I have buyer’s remorse. My next upgrade I’ll go back to AMD. Every 12th gen I’ve touched has little stuttering issues. Last week I was playing around with laptops at the store with 13th gen and they also get random stuttering issues too. A lot of people have said to me they don’t get any issues but going into a store and opening up YouTube with a 4k video and moving the mouse it stops and then continues. The AMD laptops don’t do this at all.

josephg|3 years ago

I can't speak to the "best" CPU, but I use a 7950x for rust development work in linux. Its probably overkill - The rust compiler doesn't even feel slow anymore for me on this machine.

Its a fantastic CPU.

canucker2016|3 years ago

What linker are you using? gnu.ld/bfd or lld or mold?