Improve memory usage for static vnodes

perf: improve memory usage for static vnodes
Improve memory usage for static vnodesperfimprove memory usage static vnodes

Committed by yyx990803

commit message
perf: improve memory usage for static vnodes

Use the already mounted nodes as cache instead of separate caching via
template. This reduces memory usage by 30%+ in VitePress.

Editor assessment

An exemplary commit message. The perf type accurately signals a performance-only change with no behavior difference, and 'improve memory usage for static vnodes' names both the metric and the target in eight words. The body is exactly what the spec hopes for: it explains the approach — reusing already mounted nodes as the cache instead of separate template caching — and quantifies the win as a 30%+ memory reduction in VitePress, giving reviewers and release notes concrete impact. Wrapping sits comfortably near 72 characters, keeping diffs and git log readable. Omitting a scope is defensible since the change likely spans packages, though runtime-core could argue for one. This will generate an excellent changelog entry on its own.

Browse categories

More perf examples · Back to search