# Performance

> Optimization patterns

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

---


# Performance Optimization

Find and fix bottlenecks.

## Measurement First

- Profile before optimizing
- Establish baseline metrics
- Identify top bottlenecks

## Common Issues

### N+1 Queries
- Use JOINs or batch queries
- Check ORM lazy loading

### Memory Leaks
- Check unclosed resources
- Review event listener cleanup

### Blocking Operations
- Async for I/O
- Worker threads for CPU

### Large Payloads
- Pagination
- Compression
- Lazy loading

## Checklist

- [ ] Database queries indexed
- [ ] No unbounded loops
- [ ] Caching for hot paths
- [ ] Assets optimized
- [ ] Bundle size checked

## Anti-Patterns

- Premature optimization
- Optimize without measuring
- Trade correctness for speed

