this post was submitted on 24 Mar 2024
23 points (92.6% liked)

Rust

7136 readers
7 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Giooschi@lemmy.world 3 points 1 year ago (1 children)

Another option is to compile dependencies with LLVM and optimizations, which will likely be done only once in the first clean build, and then compile your main binary with Cranelift, thus getting the juicy fast compile times without having to worry about the slow dependencies.

[โ€“] BB_C@programming.dev 1 points 1 year ago

Yes. And to complete the pro tips, the choice of linker can be very relevant. Using mold would come recommended nowadays.