mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit updates the logic that calculates `useFactory` function arguments to avoid relying on `instanceof` checks (thus always retaining symbols) and relies on flags that DI decorators contain (as a monkey-patched property). Another perf benefit is having less megamorphic reads while calculating args for the `useFactory` call: we used to check whether a token has `ngMetadataName` property 4 times (in worst case), now we have just 1 megamorphic read in all cases. Closes #40143. PR Close #40145 |
||
|---|---|---|
| .. | ||
| forward_ref_spec.ts | ||
| inject_flags_spec.ts | ||
| injector_spec.ts | ||
| r3_injector_spec.ts | ||
| reflective_injector_spec.ts | ||
| reflective_key_spec.ts | ||
| static_injector_spec.ts | ||