Analyze the following code. 1. Identify hidden performance costs 2. Highlight unnecessary allocations 3. Suggest safer, idiomatic optimizations 4. Explain WHY each change improves performance Use this before: Code reviews Refactoring sessions Legacy cleanups
