Re: Slight suggestions about luaB_print() ?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Slight suggestions about luaB_print() ?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2010年1月17日 09:04:52 -0200
> I'm just not sure if this is a good idea if the stack can't grow on
> forever without penalty? I just thought it might (possibly?) be more
> efficient to let those converted strings be popped anyway when we
> return from the function.
lua_pop is not that slow. Moreover, in general it's a good idea to keep
the stack small, especially in a loop. The stack does not grow automatically.