-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(ivy): avoid unnecessary DOM reads in styling instructions (#32716)
Before this refactoring native node `classList` / `style` properties were read even if not used. The reason for this was desire to avoid code duplication between procedural and non-procedural renderers. Unfortunatelly for the case which will be used by most users (a procedura renderer) the `classList` / `style` properties were read twice, making the `setStyle` \ `setClass` functions the most expensive ones (self time) in several benchmarks (large table, expanding rows). This refactoring adds a bit of code duplication in order to get better runtime performance. The code duplication will be removed when we drop checks for a procedural renderer. PR Close #32716
- Loading branch information
1 parent
3ace25f
commit 05e1b3b
Showing
1 changed file
with
52 additions
and
29 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