[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LuaJIT 1.1.5 vs 2.0.0-beta3 on C function calls
- From: Leo Razoumov <slonik.az@...>
- Date: Wed, 24 Mar 2010 14:27:59 -0400
On 2010-03-24, Mike Pall <email@example.com> wrote:
> Solution: reduce the number of costly Lua/C transitions. I.e. write
> more code in Lua and avoid calls to trivial C helper functions.
> [The planned FFI for LuaJIT 2.0 will speed up calls to C functions.
> But you'll need to rewrite your bindings (much easier though).]
Quite often C functions are not trivial helpers but rather
sophisticated APIs from advanced numeric libraries. Rewriting the
whole library in Lua would be wasteful.
The new forthcoming FFI is welcome and appreciated.