-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inline `diffProps` to take advantage of the props loop to read values and use later in the diff. This avoids duplicate megamorphic reads for props like `dangerouslySetInnerHTML`, `children`, `value`, and `checked` since we can reuse reading the value in the props loop for handling elsewhere. * Inline diffProps (-11 B) * Inline dangerouslySetInnerHtml handling (-1 B) Removes a guaranteed megamorphic access in diffElementNodes * Golf dangerouslySetInnerHtml handling (-4 B) * Pull of new children while looping through props (+2 B) * Read prop value once at start of props loop (+0 B) * Use prop loop for handling `value` and `checked` (-20 B) * Add types to new variables * Clean up comments * Fix benchmark name * Add run tracking to 03_update10th1k * Capture input value and checked props in first props loop (+17 B) * Golf diffElementNodes (-7 B)
- Loading branch information
1 parent
b4a1cc2
commit 51771f7
Showing
4 changed files
with
88 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51771f7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/preactjs/preact/actions/runs/6804995584/job/18503671457 tests failed