fixup! docs: add Function Inlining rules to PERF_NOTES.md

Co-Authored-By: mhevery <misko@hevery.com>
This commit is contained in:
Ben Lesh 2018-10-31 14:39:12 -07:00 committed by GitHub
parent 094b9fc69e
commit 904b91d95d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,5 +106,5 @@ export function i18nStartFirstTemplatePass(tView: TView, index: number, message:
## Loops
Don't use foreach, it can cause megamorphic function calls (depending on the browser) and function allocations.
Don't use `forEach`, it can cause megamorphic function calls (depending on the browser) and function allocations.
It is [a lot slower than regular `for` loops](https://jsperf.com/for-vs-foreach-misko)