Performance Optimization
advanceddevelopmentMin 64K context
Identifies and resolves performance bottlenecks in code and systems. Covers algorithmic complexity analysis, memory optimization, caching strategies, database query tuning, and frontend performance (Core Web Vitals). Follows a measure-first approach.
Use Cases
- Analyzing algorithmic complexity and suggesting improvements
- Optimizing database queries and indexing
- Reducing frontend bundle size and load times
- Implementing caching strategies (Redis, CDN, memoization)
- Identifying memory leaks and excessive allocations
Example Prompt
Analyze this code for performance issues and suggest optimizations. Context: - Current performance: [describe metrics, e.g., "API responds in 2s, target is 200ms"] - Scale: [e.g., "10k requests/min", "1M rows in table"] - Constraints: [e.g., "cannot change the database schema", "must support IE11"] Code: ``` [paste code here] ``` Please provide: 1. Identified bottlenecks with complexity analysis 2. Prioritized optimization suggestions (highest impact first) 3. Optimized code with before/after comparison 4. Measurement approach to verify improvements 5. Trade-offs of each optimization (memory vs speed, complexity vs performance)
Recommended Models
Compatible Tools
claude-codecursorgithub-copilotkiroany
Modalities
Input: code, text
→Output: code, text
Related Skills
Author
OpenModels Community