Skip to content
New issue

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

perf: bind:clientWidth has noticeably bad performance #8384

Closed
MathiasWP opened this issue Mar 14, 2023 · 1 comment
Closed

perf: bind:clientWidth has noticeably bad performance #8384

MathiasWP opened this issue Mar 14, 2023 · 1 comment

Comments

@MathiasWP
Copy link
Contributor

Describe the problem

Please see this git-repo for more info. (It also contains the code for the playground used in the video below)

Here's a video showcasing the performance difference between using bind:clientWidth and not using it:

Screen.Recording.2023-03-14.at.19.49.11.mov

Describe the proposed solution

MutationObserver? I know this is probably a difficult thing to refactor, but i just want to address this issue as it has been a big bottleneck for our software in some cases.

It's such a nice feature, but it's not stated anywhere that bind:clientWidth (or any of the other width/height bindings) will introduce a noticeably amount of performance overhead.

Alternatives considered

Every case has a different work-around

Importance

would make my life easier

@brunnerh
Copy link
Member

@dummdidumm dummdidumm closed this as not planned Won't fix, can't repro, duplicate, stale Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants