title: Should one use sanitizers with optimization on or off?
body: <p>I know that ideally one should do both builds(and obviously run the exes), but assuming that for resource reasons you can do only one which one would you pick.</p>
  
  <p>I am interested if I should enable optimization or not.</p>
  
  <p>My intuition says prefer optimized build because it is more likely to make UB visible due to optimizations, but I am not sure I am right.</p>