C
ClaudeMastery
MODULESPATHASK AISOURCE

Learning Modules

10 modules · 11–13 hrs

Level Legend

Beginner
Beginner+
Intermediate
Intermediate+
Advanced
Home/Slash Commands/Code Optimization
Beginner30 minLesson 2 of 9View on GitHub

description: Analyze code for performance issues and suggest optimizations

Code Optimization

Review the provided code for the following issues in order of priority:

  1. Performance bottlenecks - identify O(n²) operations, inefficient loops
  2. Memory leaks - find unreleased resources, circular references
  3. Algorithm improvements - suggest better algorithms or data structures
  4. Caching opportunities - identify repeated computations
  5. 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: April 9, 2026

Previous
Overview
Next
Pull Request Prep