Identify and eliminate unnecessary duplicate operations, redundant function calls, and repeated computations that can impact performance. Common patterns include: avoiding redundant parameter retrieval when values are already available, preventing duplicate map lookups by caching results, checking for changes before performing expensive operations, and caching expensive computations for reuse.

Examples of optimization opportunities:

Consider debouncing rapidly-triggered operations like window state saves during resize events to prevent performance degradation from excessive I/O operations.