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

chore: improve signal perf by using Set rather than array for reactions #12831

Merged
merged 5 commits into from
Aug 14, 2024

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented Aug 13, 2024

This shouldn't cause any issues, but I'm adding a changeset around it just in case. Profiling this and whilst Sets do add a slight bit of overhead compared to arrays when small, arrays are terrible compared to Sets with lots of dependencies – such as when used in each blocks.

Copy link

changeset-bot bot commented Aug 13, 2024

🦋 Changeset detected

Latest commit: 833a646

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
svelte Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@trueadm trueadm merged commit dc787be into main Aug 14, 2024
9 checks passed
@trueadm trueadm deleted the use-set-for-reactions branch August 14, 2024 12:05
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

Successfully merging this pull request may close these issues.

2 participants