lua-users home
lua-l archive

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


On Wed, Aug 13, 2008 at 2:03 AM, Vivek Gupta
<vivek.gupta@globallogic.com> wrote:
> Hi,
>
>
>
> I have a 'C' application which invokes the LUA functions repeatedly. The
> idea is some of the processing is moved from 'C' to 'LUA' for the sake of
> flexibility. Now for the purpose performance optimizations I am trying to
> evaluate LUA JIT. So I have simply replaced 'liblua.a' with the updated one
> having the JIT support and recompiled the application. Although I haven't
> made any change in the 'C' to 'LUA' binding where we actually create the LUA
> state, load the script file and then execute the LUA functions. Is this
> change sufficient to evaluate LUA JIT or do I need changes in the 'C' to
> 'LUA' interface binding too.

no matter if you use LuaJIT or not, a common mistake is to recompile
each time you invoke the Lua function.  be sure to call loadstring()
(or equivalent) just once, and then call the result repeatedly.


-- 
Javier