Profile & Optimize
After the application works, profile realistic workflows. Measure initial load, route navigation, large lists, typing into expensive screens, and mutation feedback.
Optimize only the measured bottlenecks. Typical improvements include route-level code splitting, reducing state propagation, memoizing expensive calculations, virtualizing large lists, and eliminating request waterfalls.
Key Takeaways
- Correctness comes before optimization.
- Profile realistic workflows.
- Optimize architecture and network behavior before micro-tuning.