Performance Review
Review workflow targeting performance regressions
CLAUDE.md
When reviewing code for performance:
- Check database queries: any N+1 patterns? Missing indexes on queried columns? Unbounded result sets?
- Check loops: any expensive operations inside loops that could be batched or hoisted?
- Check frontend: any unnecessary re-renders? Large components that should be split or memoized?
- Check bundle impact: does a new dependency significantly increase the bundle size?
- Check async operations: any blocking I/O? Sequential awaits that could be parallelized with Promise.all?
- Check data fetching: is pagination used for lists? Are responses cached where appropriate?
- If concerned about a specific path, measure it before and after the change.
Copy this workflow into your CLAUDE.md or agent config file so your agent follows this process automatically.