I was running performance benchmarks for jQuery (don't ask) and discovered something interesting. For some reason it seems that this[0] = element is quite slow compared to this.foo = element. Here is the obligatory jsPerf case.
Can anybody explain why there is such a performance hit? Is there any way to improve the performance apart from the obvious "use a string key"?
[]irrespective of performance differences.