lua-users home
lua-l archive

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


On Fri, 25 Jul 2008 18:34:17 +0530
"Manish Jain" <manish.jain@globallogic.com> wrote:

> 2) we tried LuaJIT. It gives 30-40% performance improvement on simple
> Lua code. But, in case of actual code(which involves access to some
> in-memory DB (mcO) and other C call), it is not giving any
> improvement. Any suggestions!

If your bottleneck is in your C code, LuaJIT will not help you.  It is
not within its scope to optimise any poor code you have, inside or
outside Lua.  It's time to get a profiler out and actually work out why
your code is slow, rather than throwing JITs at it.  It may turn out
you don't need the JIT at all.

B.