> 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.