Board Thread:Lua Help/@comment-4405550-20160107031030/@comment-24473195-20160108080113

While it is possible to add these things as a gadget, you'd have to know what those good practices and write code for the Lua Lint wikia and WMF uses for scribunto. I'm not exactly sure which library lua uses for their Lua lint, but it may be possible to submit a pull request for it and add these optimizations.

Generally speaking though, until the newpp report starts "screaming" you don't need to optimize anything. You can install this [] userscript or even make it into a gadget and immediately know when lua is taking too much time to run. In fact, the [|template profiler] will tell you exactly which functions are taking too much time whenever a page takes more than one second to execute.