Revert to _isRef for perf

perf: revert to _isRef for perf
Revert to _isRef for perfperfrevert isref perf

Committed by yyx990803

commit message
perf: revert to _isRef for perf

Benchmarking shows checking for a plain property is about 4~5x faster
than checking for a Symbol, likely because the Symbol does not fit well
into V8's hidden class model.

Editor assessment

The perf type states a revert back to _isRef for performance, and the body delivers real evidence: benchmarking shows a plain property check is roughly four to five times faster than a Symbol check, likely because Symbols fit poorly with V8 hidden classes. That motivation with measured reasoning is exactly what a why-focused body should contain. The perf type is accurate, no scope is needed for this reactivity-wide tweak, and the header is imperative and unterminated. A rare, well-justified message.

Browse categories

More perf examples · Back to search