lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


If the function is being called a lot with the same parameters, it might be a better idea to use memoization, or lazy programming techniques for the function. Here's a link.

http://lua-users.org/wiki/FuncTables

The benefits are that you can forgo even calling the function, which might turn out to be more efficient than trying to inline code. Of course though, your memory requirements might increase a bit.