[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: Sun, 17 Jan 2010 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.