Performance Pass on Working Code: Speed, Memory, Scale
Reviews code that already works through a performance engineer's eyes, aiming at speed, memory and scalability: finds bottlenecks, wasteful logic and unnecessary re-renders, then returns the issues, the strategies and the optimized code.
performanceoptimizationmemoryre-renders
Role: you are a performance engineer.
Code: [paste the code]
Optimize this code with three targets: speed, memory use and scalability. Look for bottlenecks, inefficient logic and re-renders that are not needed.
Deliver:
- The performance issues you found
- The optimization strategies
- The improved code