mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
3fe4940a9d
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 #10637
6 lines
68 B
Markdown
6 lines
68 B
Markdown
---
|
|
"svelte": patch
|
|
---
|
|
|
|
perf: bail early when traversing non-state
|