|
On 15/06/15 03:16 PM, Sven Olsen wrote:
Bad on LuaJIT. If you're gonna do that I recommend you use (function(...) end)(...), e.g. local draw_list = (function(...) <stuff> return function(list) <drawing code> end end)(...) -- pass our chunk's vargs to the function This lets LuaJIT know draw_list is a constant and make your code faster. (direct jump vs indirect jump) -- Disclaimer: these emails are public and can be accessed from <TODO: get a non-DHCP IP and put it here>. If you do not agree with this, DO NOT REPLY. |