lua-users home
lua-l archive

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


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.

--Mike