fixup! docs: add Function Inlining
rules to PERF_NOTES.md
Co-Authored-By: mhevery <misko@hevery.com>
This commit is contained in:
@ -88,7 +88,7 @@ export function i18nStart(index: number, message: string, subTemplateIndex?: num
|
|||||||
```
|
```
|
||||||
|
|
||||||
Notice that the above function almost never runs because `tView.firstTemplatePass` is usually false.
|
Notice that the above function almost never runs because `tView.firstTemplatePass` is usually false.
|
||||||
The application would benefit inlining but the large code inside `if` prevents it.
|
The application would benefit from inlining, but the large code inside `if` prevents it.
|
||||||
Simple refactoring will fix it.
|
Simple refactoring will fix it.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user