# Performance Optimization ## Render Performance - Vue tracks dependencies automatically—only re-renders what changes - Keys on `v-for` are critical—use stable, unique ID, not array index - `v-if` vs `v-show`: if unmounts, show toggles CSS—show better for frequent toggle - `v-once` for static content—renders once, never updates ## Computed Optimization - Computed values are cached—use for expensive derivations - Computed only recalculates when dependencies change - Avoid side effects in computed—can't rely on when they run - Chain computed values—each caches independently ## Component Optimization - Define components outside `