docs: add a link to "Impact of polymorphism [...]" to the perf notes (#23151)

PR Close #23151
This commit is contained in:
Victor Berchet 2018-04-03 11:27:55 -07:00 committed by Alex Rickabaugh
parent d37064ce28
commit 412b85ba89

View File

@ -13,7 +13,9 @@ shown here: https://jsperf.com/small-arrays-vs-linked-objects
## Monomorphic vs Megamorphic code
Great read: [What's up with monomorphism?](http://mrale.ph/blog/2015/01/11/whats-up-with-monomorphism.html)
Great reads:
- [What's up with monomorphism?](http://mrale.ph/blog/2015/01/11/whats-up-with-monomorphism.html)
- [Impact of polymorphism on component-based frameworks like React](http://benediktmeurer.de/2018/03/23/impact-of-polymorphism-on-component-based-frameworks-like-react/)
1) Monomorphic prop access is 100 times faster than megamorphic.
2) Monomorphic call is 4 times faster the megamorphic call.