Re:C++ vs. Rust Build Times
by throw827474737 on Friday January 06, 2023 @04:37AM
(#34272788)
I didn't get why he doesn't see barely any improvement using mold, while mold's advertising/benchmarks show 1-2 magnitudes of improvements over gold, and still at least 50% vs llvm.
Reading through mold's nice docs I could only explain that by him not utilizing multiple cores (molds actual strength besides other things), but seems pretty unlikely. Who can explain?
[ Parent
| on HN ]
For the 17k SLOC project, link times were already under 100 milliseconds without mold. There are other, bigger bottlenecks to deal with.
As a project grows larger, link times become more noticeable, and mold starts to help.
Re:C++ vs. Rust Build Times
by throw827474737 on Friday January 06, 2023 @05:27AM
(#34273100)
Oh sorry you pointed that out below, thank you for doing again!
I actually pointed it out in the article when I compared GNU ld with Mold. =] And I was actually wrong in my comment; run_linker took 129 ms, not under 100 ms. https://quick-lint-js.com/blog/cpp-vs-rust-build-times/#opti...