[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Is it supposed to be faster to call a C function than a Lua function when in Lua?
- From: Eric Wing <ewmailing@...>
- Date: Thu, 27 Jun 2013 13:00:04 -0700
> If you look at the c code of the Lua interpreter, this is not really
> surprising. There is not really a language bridge at that point. The Lua
> interpreter is in C as well. All it does is a call of a C function pointer.
So just as an additional data point, I've been looking at
I'm doing v8 on Android which cannot disable JIT).
faster than calling the C empty function, but both were slower than
Lua calling a Lua function.
faster than the C call and about 5x faster than Lua. But I think I'm
more surprised that v8's JIT didn't completely optimize out the loop
and empty function and make the time 0.
Beginning iPhone Games Development