Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(ivy): apply [class] bindings directly to className
This patch ensures that `[class]` based bindings are directly applied to an element's className property. This patch optimizes the algorithm so that it... - Doesn't construct an update an instance of `StylingMapArray` for `[style]` and `[class]` bindings - Doesn't appled `[class]` based entries using `classList` - Doesn't split or iterate over all string-based tokens in a string value obtained from a `[class]` binding. This patch speeds up the `<div [class]>` and `<div class="" [class]>` case by over 5000x.
- Loading branch information
Showing
3 changed files
with
119 additions
and
20 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