|
On Thu, Jul 28, 2016 at 1:46 PM, Viacheslav Usov <via.usov@gmail.com> wrote:On Wed, Jul 27, 2016 at 7:14 PM, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:> But main chunks also are seldom called multiple times, so maybe optimizing their calls is not relevant, after all.My company's use of Lua does involve main chunks being called multiple times, they are basically callbacks for events, which are both numerous (thousands) and frequent (easily sub-second rates). I'm not sure whether we really benefit from whatever optimization you are talking about (I have not followed this thread very closely), but I'd just like to point out that the cited assumption is generally not correct.That optimization is useful for you only if both following conditions are met:1) You did not access vararg using 3 dots (...) inside your main chunks.2) Your main chunks are invoked with non-empty argument list (although those arguments are not used inside!).Now, you can say for sure whether unused-vararg-elimination is useful for you or not.