[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: penformance penalty with small LUAL_BUFFERSIZE
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 23 Jul 2010 18:14:27 -0300
> I would like to change the LUAL_BUFFERSIZE to e.g. 256 but I do not
> know how much will be the performance penalty from it [...]
That should cause no detectable penalty for simple scripts.
> [...] or even if lua can be running with tasks less than 4K (just only
> simple scripts, no recursion...).
You may need to change a few other constants besides buffer size. But
first try it. Recursion should not be a problem; Lua calls do not use
C stack. The compiler uses some C stack, so you may have problems with
nested functions.
-- Roberto