lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On Jul 28, 2016, at 3:46 AM, 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.

Cheers,
V.

+1, we use main chunks in a similar way.

—Tim