Update preact to v10.27.1 #1916
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Hey @krausest, big fan of this repo, thank you for all of your hard work!
I wanted to submit a small PR to bump all of the Preact implementations to
10.27.1because the latest release has a small fix related to re-ordering of memoized rows.It should remove majority of
swap-rowscost inpreact-classesandpreact-kr-observable, since these are using memozied rows and were affected by the edge case that was fixed.Other implementations,
preact-hooksandpreact-signals, do not use memoized rows and currently have faster swap performance (before this release), but end up having to eat the cost of not being able to skip processing rows inselect-rowandpartial-update.I am guessing that the reason why hooks and signals implementations do not use memoized rows is because of the said swap deopt that was fixed. So I was also planning on submitting another PR to update
preact-hooksandpreact-signalsto use memoization. Please let me know if you'd rather have it all in one PR, I can also push it here later.