Edited: Sorry, i've deleted wrong thoughts, missunderstood.
that's basically my point. me = this is actually adding bytes in some cases and I believe it's just an unnecessary overhead for the developer to have to count bytes and decide either way.
My test checks the ST lib, so what you're saying is that Sencha used it in wrong places?
Not sure if I understand your comment completely.
The @mschwartz's and @yyjia's findings that using "var me = this;" leads to a performance boost are very interesting.
The @mschwartz's test produces the following results for me (+/- a few milliseconds) with Windows 7:
FireFox - 92 vs 74
Chrome - 30 vs 21
IE9 - 100 vs 87
The performance boost in Chrome is about 30%. I think it is very substantial.
Well, the performance is always actual. For Ext JS as well
Daniil, there's no performance again. I provided a link to an http://stackoverflow.com/ post which in turn linked to a jsPerf test showing that there's no performance gain.
Is this link you are talking about?
Could you, please, point me to a link to the jsPerf test?
Who knows, maybe, Chrome will be a single browser in the future