-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve compile times #1316
Comments
rebuild on dev with M1 max via cargo-timing-20230215T130337Z.html.zip Quite surprised about zlib being so slow here! Investigating alternatives! |
very similar results on second run |
Getting rid of zstd is somewhat hard - it is just really really good it seems EmbarkStudios/puffin#130 |
I think we can switch from EDIT: |
This halves compilation times for users only using the |
Status update: On c5f8176 (somewhere between 0.16 and 0.17 ;) M1max MacBook Pro (very similar to emils machine above)
|
(edited by @emilk)
Improve build times, and aspire to reduce number of dependencies and code bloat in the process.
Some useful tools include:
cargo clean && cargo build --timings -p rerun
cargo tree
cargo machete
cargo udeps
to find unused dependenciesSee also:
Reducing dependencies
Some ideas:
clap
with something simpler, like pico-argssha2
with a simpler hashchrono
withtime
image
crate with https://github.com/etemesi254/zune-imagere_web_server
should be able to use something must simpler thanhyper
+tokio
lazy_static
withonce_cell
?strum
enumset
can be replaced with something simpler (maybe bymacro_rules!
)naga
features?crossbeam
(std::sync::mpsc
is now using the same implementation) - thoughcrossbeam
compiles in 2s, so probably not worth itDone:
image
features and dependencies #1425reqwest
withureq
#1407derive_more
crate #1406Other tasks
cargo-deny
to the CI of other crates, likearboard
, to prevent duplicate dependencies of e.g.nix
lz4_flex
: Compression benchmarks EmbarkStudios/puffin#130 (comment)Other
We have some instructions for improving build times in https://github.com/rerun-io/rerun/blob/main/BUILD.md#improving-compile-times
The text was updated successfully, but these errors were encountered: