[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LuaJIT2 performance for number crunching
- From: Leo Razoumov <slonik.az@...>
- Date: Sat, 12 Feb 2011 22:39:29 -0500
On Sat, Feb 12, 2011 at 19:39, Francesco Abbate <email@example.com> wrote:
> Hi all,
> As many have already pointed out there is a big problem when using
> external C libraries that repeatedly calls Lua callback functions,
> like Leo Razoumov was mentioning for numerical integration routines
> that requires a pointer to a C function to evaluate the function. The
> problem is that in these circumstances LuaJIT is not able to optimize
> the Lua callback function because it is called from the C code.
Mike Pall recently pointed out a clean approach to facilitate
Lua->C->Lua calls using C-side coroutines.
Most importantly, this method does not preclude LuaJIT optimizations.