mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
5e6d8573f4
The `getControlDirective` is called multiple times, both at init and during each update run. Under the hood it performs a linear search for the `Field` directive. We can speed this up by finding its index once and reusing it since the array of directive matches is static.