[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Overhead of luaJIT_setmode(L, -1, LUAJIT_MODE_WRAPCFUNC|LUAJIT_MODE_ON)
- From: Mike Pall <mikelu-1112@...>
- Date: Fri, 23 Dec 2011 21:53:53 +0100
Konstantin Osipov wrote:
> Why is it only OK if called rarely? Is the built-in pcall()
> significantly different?
The buit-in pcall() is zero-cost. But transitions from Lua to C and
especially from C to Lua are expensive.