[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Re: penformance penalty with small LUAL_BUFFERSIZE
From:       Roberto Ierusalimschy <roberto () inf ! puc-rio ! br>
Date:       2010-07-23 21:14:27
Message-ID: 20100723211427.GA31944 () inf ! puc-rio ! br
[Download RAW message or body]

> 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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic