Replies: 1 comment 4 replies
-
I think it's good idea, CI is too slow. (Seems like there was some regression recently) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is not an official RFC or proposal, more of a casual thought.
Compilation / build performance of rust application does not come from a single offender but requires continuous exploration across various domains. I'm not trying to say replacing a linker would resolve all the costs for our build performance. However, given we're seeing some of slow build speed (on CI, mostly for release build) it maybe interesting to consider to use different linker.
This is a very small example on Windows between msvc. vs lld on i7-1165G7.
msvc + windows is probably not a good example to guess all platform perfs as link perf on msvc would be lot slower than other platforms. However, I'd guess we'd get some of performance gain across stiil.
What linker should be used?
lld (and maybe mold for linux)?
Pros
(maybe) faster link perf
Cons
Setup requires additional steps to have llvm (or other linkers) installed.
Beta Was this translation helpful? Give feedback.
All reactions