this post was submitted on 31 Oct 2023
21 points (100.0% liked)
Rust
6031 readers
2 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Trying cranelift for the first time (I think).
Let's create a "release-dev-cl" profile that inherits "release-dev" profile and compare.
For reference, "release-dev" is:
Cool, cold builds (including deps) went from 73s to 37s, with
zstd-sys
becoming a bigger offender.But but but...
Alright. Which dep is using this. Let's
cargo vendor
andrg
.reported
Alright, let's try another project...
Nice, this one goes from 52s to 19s, and no unsupported intrinsics.
Let's test the binary.
Hmm, it's orders of magnitude slower.. let's
perf
...Ouch,
Vec::extend_with()
,usize::forward_unchecked()
, and even worse,u8::clone()
are slow!That's a hell of a comment !