[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Preallocating lua string before pushing them on the stack (prevent double alloc / memcpy)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 16 Aug 2010 11:47:42 -0300
> 1) The luaL_Buffer struct statically contains the temporary buffer
> (size : LUAL_BUFFERSIZE), which may be a prb if you do not want to
> consume the C stack too fast (on low end embedded system it matters)
As a side note: LUAL_BUFFERSIZE may be any size. The default size is
BUFSIZ for lack of a better default. Low end embedded systems should
compile Lua with a more appropriate LUAL_BUFFERSIZE value.
-- Roberto