We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
O(n^2)
remove_reactions
I'm building a sort of very custom use-case AI dataset editor which involves rendering approximately ~80k DOM nodes.
Occasionally, a full re-render is required, which leads to remove_reactions getting called for each "cell" in my grid I am rendering.
remove_reactions calls remove_reaction n times, which itself, performs an indexOf on the dependencies, leading to terribly slow re-renders.
remove_reaction
n
indexOf
svelte/packages/svelte/src/internal/client/runtime.js
Lines 440 to 493 in f7f87dc
...
No response
System: OS: macOS 15.1 CPU: (8) arm64 Apple M1 Pro Memory: 116.11 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.17.0 - ~/.nvm/versions/node/v20.17.0/bin/node npm: 10.8.2 - ~/.nvm/versions/node/v20.17.0/bin/npm pnpm: 9.7.0 - ~/Library/pnpm/pnpm bun: 1.1.39 - ~/.bun/bin/bun Browsers: Chrome: 131.0.6778.205 Safari: 18.1 npmPackages: svelte: ^5.16.0 => 5.16.0
annoyance
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
I'm building a sort of very custom use-case AI dataset editor which involves rendering approximately ~80k DOM nodes.
Occasionally, a full re-render is required, which leads to
remove_reactions
getting called for each "cell" in my grid I am rendering.remove_reactions
callsremove_reaction
n
times, which itself, performs anindexOf
on the dependencies, leading to terribly slow re-renders.Code responsible:
svelte/packages/svelte/src/internal/client/runtime.js
Lines 440 to 493 in f7f87dc
Reproduction
...
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: