angular-cn/goldens/public-api/core
Andrew Kushnir 6cff877f4f perf(core): make DI decorators tree-shakable when used for `useFactory` deps config (#40145)
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
2021-01-13 14:08:45 -08:00
..
testing feat(core): update reference and doc to change `async` to `waitAsync`. (#37583) 2020-08-03 12:54:13 -07:00
core.d.ts perf(core): make DI decorators tree-shakable when used for `useFactory` deps config (#40145) 2021-01-13 14:08:45 -08:00
global_utils.d.ts ci: move public-api goldens to goldens directory (#35768) 2020-03-10 20:58:39 -04:00