0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00
svelte/.changeset/chatty-sloths-allow.md
Simon H 3fe4940a9d
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 #10637
2024-02-27 14:55:31 +01:00

6 lines
68 B
Markdown

---
"svelte": patch
---
perf: bail early when traversing non-state