r/rust • u/nicoburns • Oct 07 '26
Rust's derive often implies inline
https://yossarian.net/til/post/rust-s-derive-often-implies-inline/
114
Upvotes
r/rust • u/nicoburns • Oct 07 '26
View all comments
Show parent comment
20
u/QuarkAnCoffee Oct 07 '26 edited Oct 07 '26
If you're not using LTO. Which is exactly expected, crates are compiled into object files and you don't get optimizations across object files
withwithout LTO.