There are a lot of working solutions here, but here is the fastest one in terms of performance:
function table.append(t1, t2)
local n = #t1
for i = 1, #t2 do
t1[n + i] = t2[i]
end
return t1
end
Concatenates in place Table t2 at the end of Table t1.