Whenever you're ready, walk me through how you'd approach this.
Walk me through how you would optimize a function that is causing a system bottleneck.
Explain how you would confirm the bottleneck, identify its limiting resource, choose an optimization, and validate that the change improves the intended system behavior. Keep the discussion focused on C or C++ code running on an embedded Linux target, including measurement, correctness, and regression validation.