From 0cddf21ca3425d8634bafed900ca8414223c776e Mon Sep 17 00:00:00 2001 From: Aslan Vatsaev Date: Wed, 28 Mar 2018 23:09:12 +0200 Subject: [PATCH] docs: Update PERF_NOTES.md --- packages/core/src/render3/PERF_NOTES.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/render3/PERF_NOTES.md b/packages/core/src/render3/PERF_NOTES.md index ce9c4f0c1e6f9..39fd208887e14 100644 --- a/packages/core/src/render3/PERF_NOTES.md +++ b/packages/core/src/render3/PERF_NOTES.md @@ -15,7 +15,7 @@ shown here: https://jsperf.com/small-arrays-vs-linked-objects Great read: [What's up with monomorphism?](http://mrale.ph/blog/2015/01/11/whats-up-with-monomorphism.html) -1) Monomorphic prop access is 100 times faster then megamorphic. +1) Monomorphic prop access is 100 times faster than megamorphic. 2) Monomorphic call is 4 times faster the megamorphic call. See benchmark [here](https://jsperf.com/mono-vs-megamorphic-property-access). @@ -61,4 +61,4 @@ over properties of an object. for (var i = 0, keys = Object.keys(obj); i < keys.length; i++) { const key = keys[i]; } -``` \ No newline at end of file +```