Thread:SmokeyTheButt/@comment-26091666-20151001071148/@comment-25683568-20151102032201

I have trouble with script errors on Ship list and Remodel. I think it happens when wikia decides to refresh the cached page during peak times and because of the higher than normal load on the servers the amount of Lua that can be run before timeout happens is less.

It's possible to use mw.loadData to load data modules which should mean that multiple #invoke's on the same page will only load unique data modules once, but it will mean additional overhead when accessing the data itself, since I can no longer use the data table itself as the base for the ShipData wrapper; the ShipData wrapper will have to have a reference to the data table and every data access will go through one more lookup. This means that pages will be a (tiny?) bit slower across the board in exchange for pages that access data modules more than once across multiple invokes (ship pages, pages with lots of ShipCardKai etc template level calls) should get a noticeable speed increase.

Of course, this is assuming my understanding that requires are slow compared to lookups is correct. It's a big change at the core of the Lua system though, so I've been hesitant to try it. If I break something literally everything Lua will break =/