Build Configuration: Optimize for Speed vs Optimize for Debugging

Hello,
I’m testing a PID controller for a quadcopter. When I compile the application with the optimize for speed then flash, I notice that the PID response is slower than when I compile with the Debug optimization .


What could be the reason?

Related