mirror of https://github.com/sveltejs/svelte
perf: skip quadratic blocker analysis when no top-level await (#18548)
Skip function reference tracing in `calculate_blockers` when a component has no top-level `await`. Blockers only represent dependencies on top-level async statements. Without a top-level `await`, no binding can have a blocker, so tracing every top-level function cannot affect the generated output. In large components with many functions and transitive assignments, that unnecessary work can become quadratic.pull/18552/head
parent
22e0adb75a
commit
d0dbe1a480
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
perf: skip unnecessary blocker analysis when compiling components without top-level await
|
||||||
Loading…
Reference in new issue