Should we enable optimizations for dev builds by default? #5260
Replies: 3 comments 7 replies
-
There's still no guarantee of exposing UB, right? Just a chance? |
Beta Was this translation helpful? Give feedback.
-
I think that having a dedicated profile for CI with different optimization And if we try to detect the undefined behavior, I think we actually have much I agree that it is more complex to create and manage a separate profile. ./cargo test --package solana-core -- --nocapture replay_stage to ./cargo test --profile ci --package solana-core -- --nocapture replay_stage You do need to know that this is how you do it. But if our CI uses the profile I also think that using O3 in this case could be an option that we may want to |
Beta Was this translation helpful? Give feedback.
-
Could you provide some numbers for that? I honestly thought that the whole point is to speed up CI. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
See #5155 for context.
TL;DR of it is:
Pros:
Cons:
A compromise may be to enable optimizer in CI only, which has the following features:
4 votes ·
Beta Was this translation helpful? Give feedback.
All reactions