Code Optimization
Review the provided code for the following issues in order of priority:
- Performance bottlenecks - identify O(n²) operations, inefficient loops
- Memory leaks - find unreleased resources, circular references
- Algorithm improvements - suggest better algorithms or data structures
- Caching opportunities - identify repeated computations
- Concurrency issues - find race conditions or threading problems
Format your response with:
- Issue severity (Critical/High/Medium/Low)
- Location in code
- Explanation
- Recommended fix with code example
Last Updated: August 4, 2026 Claude Code Version: 2.1.220 Sources:
- https://code.claude.com/docs/en/commandsCompatible Models: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5