mediawiki.js request() caching deep level object member access.
authorKrinkle <krinkle@users.mediawiki.org>
Sat, 30 Jul 2011 06:33:46 +0000 (06:33 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Sat, 30 Jul 2011 06:33:46 +0000 (06:33 +0000)
commit2463f989961423790f7c7c04c0bbbf2f7f052e5c
tree0960f12d550187dac30fa1b768a0f7f992c6cd4f
parentc5cf4b3376050c74fe1342ac69133db23c5c6485
mediawiki.js request() caching deep level object member access.
- Instead of requesting index 0 of dependancies-argument, and the value of that of the registry, and the dependancies object in that of which we read the length property is very deep. Even worse when doing that both in the head and in the body of a for()-loop.
- Instead caching reference access to dependancies object of the registry item.
- Plus a simple by-value of the length property
resources/mediawiki/mediawiki.js