[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua: Performance
- From: Rob Kendrick <lua-l@...>
- Date: Fri, 25 Jul 2008 14:13:49 +0100
On Fri, 25 Jul 2008 18:34:17 +0530
"Manish Jain" <email@example.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.