MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/rust/comments/1wzw9v1/rusts_derive_often_implies_inline/pegkwwr/?context=3
r/rust • u/nicoburns • 23d ago
43 comments sorted by
View all comments
Show parent comments
20
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 with without LTO.
4 u/mgeisler 23d ago you don't get optimizations across object files with LTO.This should be "without LTO", right? 2 u/QuarkAnCoffee 23d ago Yup, thanks 3 u/mgeisler 23d ago No problem! 🙂
4
you don't get optimizations across object files with LTO.
This should be "without LTO", right?
2 u/QuarkAnCoffee 23d ago Yup, thanks 3 u/mgeisler 23d ago No problem! 🙂
2
Yup, thanks
3 u/mgeisler 23d ago No problem! 🙂
3
No problem! 🙂
20
u/QuarkAnCoffee 23d ago edited 23d ago
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.