mirror of https://github.com/sveltejs/svelte
perf: bail early when traversing non-state (#10654)
This has a lot of overhead for large lists, and we can at least diminish in the "no state proxy" case by applying a sensible heuristic: - If the value passed is a state proxy, read it - If not, and if the value is an array, then bail because an array of state proxies is highly unlikely - Traverse the first level of properties of the object and look if these are state, if not bail. State proxies nested further down are highly unlikely, too part of #10637pull/10656/head
parent
6625c1e080
commit
3fe4940a9d
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"svelte": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
perf: bail early when traversing non-state
|
Loading…
Reference in new issue