performance-optimizer
Installation
SKILL.md
Performance Optimizer
Analyze and optimize $ARGUMENTS for performance:
Analysis Process
- Identify the bottleneck — don't optimize without measuring
- Profile first — use language-appropriate tools
- Propose changes with expected impact
- Verify improvement with benchmarks
Common Optimization Patterns
Algorithmic
- Replace O(n²) with O(n log n) or O(n) where possible
- Use appropriate data structures (HashMap for lookups, not array scan)
- Avoid unnecessary sorting — use partial sorts or heaps
- Cache computed results (memoization)