You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.
The following line came up hot in a profile of the TreeComponent benchmark.
https://github.com/angular/angular.dart/blob/c21ac7eaec3fd15bba7a124fdfb3e9680092a0f2/lib/core_dom/tagging_view_factory.dart#L72
The call to Element.classes.contains() involves an expensive HashMap and should be avoided.
Since the nodeList is generally a clone of the template nodes, we can pre-compute this check in the
Compiler
and pass it in with the templateNodes.In fact, we could go further and pre-compute other checks as well:
.ng-binding
elements (if not, we can skip thequerySelectorAll
checkThe text was updated successfully, but these errors were encountered: