# Optimize Performance

> Analyze the current code for performance bottlenecks and provide optimization recommendation...; keywords: api, performance. Use only on explicit request; skip in routine implementation discussions.

- Skill: `gologo13/optimize-performance` (Agent Skill)
- Install (CLI): `npx skillmds@latest add gologo13/optimize-performance`
- Raw SKILL.md: https://api.skillmd.com/api/skills/gologo13/optimize-performance/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: gologo13 (https://skillmd.com/u/gologo13)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/gologo13/optimize-performance

---


# Optimize Performance

## Overview

Analyze the current code for performance bottlenecks and provide optimization recommendations, focusing on measurable improvements while maintaining code quality and readability.

## Steps

1. **Performance Analysis**
    - Identify slow algorithms and inefficient data structures
    - Find memory leaks and excessive allocations
    - Detect unnecessary computations and redundant operations
    - Analyze database queries and API calls
2. **Optimization Strategies**
    - Suggest algorithm improvements and better data structures
    - Recommend caching strategies where appropriate
    - Propose lazy loading and pagination solutions
    - Identify opportunities for parallel processing
3. **Implementation**
    - Provide optimized code with explanations
    - Include performance impact estimates
    - Suggest profiling and monitoring approaches
    - Consider trade-offs between performance and maintainability

## Optimize Performance Checklist

- [ ] Identified slow algorithms and inefficient data structures
- [ ] Found memory leaks and excessive allocations
- [ ] Detected unnecessary computations and redundant operations
- [ ] Analyzed database queries and API calls
- [ ] Suggested algorithm improvements and better data structures
- [ ] Recommended caching strategies where appropriate
- [ ] Provided optimized code with explanations
- [ ] Included performance impact estimates
- [ ] Considered trade-offs between performance and maintainability

