[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Inline function in Lua
- From: "Inmate 2993" <inmatarian@...>
- Date: Tue, 9 Jan 2007 00:12:31 -0500
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.