Skip to content

Conversation

@trueadm
Copy link
Contributor

@trueadm trueadm commented Jan 6, 2025

Instead of using array.indexOf we can use the cached prototype method, avoiding any monkey-patching in DEV and also ensuring the IC is always hot in both dev and prod. Should hopefully resolve #14875.

@changeset-bot
Copy link

changeset-bot bot commented Jan 6, 2025

🦋 Changeset detected

Latest commit: 6badd76

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

@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2025

Playground

pnpm add https://pkg.pr.new/svelte@14912

@Rich-Harris Rich-Harris merged commit dbdb8cd into main Jan 6, 2025
11 checks passed
@Rich-Harris Rich-Harris deleted the use-cached-index-of branch January 6, 2025 19:21
@github-actions github-actions bot mentioned this pull request Jan 6, 2025
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.

Performance: O(n^2) time-complexity with remove_reactions

3 participants