PidControl: micro-optimization