-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
Describe the bug
In async Svelte versions (5.36.0+) there have been some significant performance regressions (~8x) when rendering many LayerChart charts.
While some subsequent versions have made progress to restore some performance, the more recent releases (5.40.0+) have gotten much worse (~27x).
Below is rendering 20 BarChart instances on different Svelte versions:
| version | average | screenshot | REPL |
|---|---|---|---|
5.35.0 (baseline) |
~600ms |
![]() |
REPL |
5.39.0 |
~5300ms |
![]() |
REPL |
5.39.13 |
~4700ms |
![]() |
REPL |
5.43.8 |
~16500ms |
![]() |
REPL |
Reproduction
See REPL links above, notable the most recent 5.43.8 version.
For a more real world example, checking out the WIP LayerChart v2 docs PR, which are PR preview deployed here. A good example is going to any component page such as BarChart and clicking "View all" (warning: your browser won't be happy).
I've been using 5.39.13 to development which allowed for async/remote functions support and enough performance to be patient with, but 5.40.0+ can crash the browser (but also fixes some deployment issues in older versions). I recently bumped to the latest 5.43.8 to fix some deployment issues and help report issues.
Logs
System Info
svelte `5.36.0+` and `5.40.0+`Severity
blocking an upgrade



