Optimizing Rustc's next trait solver (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
you might also be able to drop crossbeam for stdlib types and rand for much smaller random library if you don't need it's comprehensive features.
cargo's release profile also uses opt level 3 and thin-local lto by default. Whether you need those is up to you, hard to say more without knowing your project!
but yes it is somewhat easy to allow rust projects to creep up in compile times especially with how easy it is to bring in big useful libraries that often come with a lot of features. disabling features where possible is the go to if you have big dependencies.
Replies (1)
I don't depend on serde, I tried to find an alternative to serde-json but couldn't find anything.
I like crossbeam a lot because it is multi consumer which means I can build a "work stealing" thread pool very easily.
It seems like the majority of the time is taken by the linking.