Great article, thanks! Also for the JSPerf experiment! I ran it a few times with different browsers/devices and it seemed to me there's already some optimization work going on o/ (I imagine it gets some push after proposals arrive stage 3)
On an i5 mac air I confirmed your finding that Chrome, also/therefore Opera & Edge - but curiously not Safari - are still ~42% slower.
However both in Safari and FF performance hit is negligible (sometimes even better) on your I'd say not so trivial test case.
Also interestingly I could confirm in an iPhone 6S that Firefox Mobile is indeed 50% faster for optional chaining and Chrome/Safari “consistently”* faster by 5% (*three measurements)
About bundle hit IMO it’s small enough for the payoff.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great article, thanks! Also for the JSPerf experiment! I ran it a few times with different browsers/devices and it seemed to me there's already some optimization work going on o/ (I imagine it gets some push after proposals arrive stage 3)
On an i5 mac air I confirmed your finding that Chrome, also/therefore Opera & Edge - but curiously not Safari - are still ~42% slower.
However both in Safari and FF performance hit is negligible (sometimes even better) on your I'd say not so trivial test case.
Also interestingly I could confirm in an iPhone 6S that Firefox Mobile is indeed 50% faster for optional chaining and Chrome/Safari “consistently”* faster by 5% (*three measurements)
About bundle hit IMO it’s small enough for the payoff.