lua-users home
lua-l archive

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

On 2010-03-24, Mike Pall <> 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.