profile (basically dev/test + optimizations) might be a sensible compromise? that should catch most optimization-related issues, while still keeping (test) compilation times down..
Sigh ("Modern"), Compilation time wouldn't be an issue with Ada SPARK
(faster than C++) and it's an easier to use, more maintainable and safer
language that is better at low level and kernel development than Rust.
--
Regards, Kc