This repository has been archived by the owner on Mar 2, 2021. It is now read-only.
Investigate adding a change list ops for common attributes and listeners #27
Labels
performance
Related to performance and profiling
The
"class"
and"id"
attributes are used super frequently. We could have aSetKnownAttribute
op that has an immediate that is an enum value for various common attributes instead of the string for the attribute. This would save time decoding strings in the change list implementation, which is pretty hot.We could do a similar thing for known events, like
"click"
etc.The trade off is that the more "known" events and attributes we support, the more we have to check whether an attribute is known or not when diffing and emitting the change list. But some initial profiling shows that we only spend about 5% of time in diffing, and much than that in applying diffs. Even just string decoding within diff application we seem to spend about 10% of time in!
The text was updated successfully, but these errors were encountered: