Workflow Code Review

Performance Review

Review workflow targeting performance regressions

reviewperformanceoptimization
CLAUDE.md

When reviewing code for performance:

  1. Check database queries: any N+1 patterns? Missing indexes on queried columns? Unbounded result sets?
  2. Check loops: any expensive operations inside loops that could be batched or hoisted?
  3. Check frontend: any unnecessary re-renders? Large components that should be split or memoized?
  4. Check bundle impact: does a new dependency significantly increase the bundle size?
  5. Check async operations: any blocking I/O? Sequential awaits that could be parallelized with Promise.all?
  6. Check data fetching: is pagination used for lists? Are responses cached where appropriate?
  7. 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.

get crystl