Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update PERF_NOTES.md #23050

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/core/src/render3/PERF_NOTES.md
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];
}
```
```