@bmeurer @mathias Hey! I was hoping for your thoughts on this test case. Deep inheritance is slower than wrapping. Any possibility of this being improved? https://jsperf.com/inheritance-vs-wrapping/1 …
-
-
And make sure the result gets stored globally so it’s not dead-code-eliminated.
-
Thanks for your help. Here's an updated version. Still same result. I assume that decorators will have a similar cost (not too familiar with new proposal). This pattern is becoming common in WC usage. ofc 1000 is unrealistic number. cc
@justinfagnani https://jsperf.com/inheritance-vs-wrapping … - 10 more replies
New conversation -
-
-
Ah you're right. Now I'm questioning if I do really only want to measure .add() and not instantiation. The use case I'm thinking of is the custom element mixin pattern. I'll try moving it as you suggested just to see though.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.