Skip to content

Performance regressions (5.36.0+ and 5.40.0+) #17176

@techniq

Description

@techniq

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 Image REPL
5.39.0 ~5300ms Image REPL
5.39.13 ~4700ms Image REPL
5.43.8 ~16500ms Image 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).

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions