I split up some of the top methods listed in
cargo bloat --release. In my tests this improves the build time of Lemmy (excluding dependencies) from roughly 1m 30s to 1m 30s. Build time varies a lot so its hard to get solid numbers, but its cleary faster than before. Note that the duration for
cargo check hasnt changed.
Here's how I measured it:
cargo build cargo clean -p lemmy_utils -p lemmy_api -p lemmy_apub -p lemmy_db -p lemmy_rate_limit -p lemmy_structs -p lemmy_websocket -p lemmy_server cargo build