[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: 'gc' tag method
- From: "Curt Carpenter" <curtc@...>
- Date: Thu, 21 Mar 2002 13:09:17 -0800
>> Any plans to introduce an optional cycle limiter, to guard against
>> loops and things like that? Such that I can say: lua_setcycles(50);
>> lua_dostring(...); and at 50 cycles in, it will yield back to the
>> that called it with a LUA_YIELD return code, at which point I can
>> lua_continue() or do something else...
> Hopefuly, you will be able to do that using the line hook.
Line hooks are too expensive for performance-sensitive production code.