Skip to content

Commit

Permalink
docs: Update PERF_NOTES.md
Browse files Browse the repository at this point in the history
  • Loading branch information
avatsaev committed Mar 29, 2018
1 parent 0049743 commit 0cddf21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/render3/PERF_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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];
}
```
```

0 comments on commit 0cddf21

Please sign in to comment.