Large Performance Delta between debug and release mode #2371
Replies: 2 comments 4 replies
-
(This may be a good point to move this to a discussion.) Yes. It is quite expected. That's just how Rust compilation works. You can change your [profile.dev.package]
adler2.opt-level = 3
miniz_oxide.opt-level = 3
png.opt-level = 3
flate2.opt-level = 3
image.opt-level = 3 Keep in mind these are local to the workspace and the exact set will require a bit of fine-tuning. The level is also not recursive, I'd recommend petitioning with |
Beta Was this translation helpful? Give feedback.
-
First of all thank you for the quick answer and sorry for not putting this in an discussion post directly. I played around a bit with the opt-levels.
But even though I specified the opt-level of every dependency of |
Beta Was this translation helpful? Give feedback.
-
When loading a simple image and encoding it with webp (lossless) my laptop takes:
Image: 640x480 jpeg 12.5kB
I am quite surprised about the large delta. Is this something your aware of?
Do you know what is causing the slowdown ?
Reproduction steps
Beta Was this translation helpful? Give feedback.
All reactions