Whenever you're ready, walk me through how you'd approach this.
Describe a time you had to optimize a piece of code that was causing a bottleneck in a production environment.
Explain how you identified the root cause, evaluated optimization options, and balanced performance improvements against delivery risk. Include how you coordinated the change, validated it, and monitored the production outcome.