performance hotspot
The small part of a program where most of the time is spent, and where optimisation actually pays off.
In more detail
Optimising code outside the hotspot rarely makes a noticeable difference. Profilers find hotspots by measuring where time goes.
Example
In React it is usually one expensive component that renders too often; the Profiler ranked chart shows it.Related terms
- Profiler — A React component, and a React DevTools tab, that measures how often and how long parts of the tree render.
- premature optimization — Adding speed tricks before measuring that there is a real performance problem.
Taught in
- useContext in Depth: Scoping, Consumer Subscription Costs — React 19 & Modern Component Architecture
- Suspense Architecture: Promises, Fallbacks, And Co-ordination — React 19 & Modern Component Architecture
- Render Diagnostics: Profiling Re-Renders with React DevTools — React 19 & Modern Component Architecture
- React.memo, useMemo, And useCallback: Optimization Costs — React 19 & Modern Component Architecture