Re: Key lookup optimizations...
- From: Alex Szpakowski <aszpakowski@xxxxxxxxx>
- To: luajit@xxxxxxxxxxxxx
- Date: Tue, 1 Sep 2015 17:52:36 -0300
On Sep 1, 2015, at 5:47 PM, Lance Thornblad <lance.thornblad@xxxxxxxxx> wrote:
Yes, you're right. I don't yet know for sure that it's a problem. Keeping
more stuff on the Lua side means committing wholly to Lua.
If you use LuaJIT’s FFI to call C functions directly, then you can ditch most
of your Lua/C interop code and just call C functions directly inside Lua.
(Although to make things robust you may need some Lua-side wrapper code.)
Doing so will *drastically* improve performance when using LuaJIT, since it
will actually be able to do its job and JIT-compile code.
Other related posts: