This message is an update about a problem from last year [1] on the performance of the following simple script
-- collectgarbage("generational")
N = 2.0e7
C = {}
for i=1,N do C[i] = i end
print(string.format("%.1f",collectgarbage("count")))
for i=1,10*N do
local a = {1,2,3,4}
end
print(string.format("%.1f",collectgarbage("count")))
motivated by the recent statement of Roberto [2] about the "generational" GC of Lua 5.4.
Results for the script above: