[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: question about performance
- From: Ulrich Schmidt <u.sch.zw@...>
- Date: Sun, 23 Oct 2016 17:48:06 +0200
Hi all.
I want to avoid any unnecessary table creation to keep the gc workload low.
Question: will the following code create the new table "{}" only if the
parameter "tbl" is nil OR will the new table created always and garbage
collected if the parameter "tbl" is given?
---8<----------------------------
function xx(tbl)
local todolist = tbl or {};
...
end;
---8<----------------------------
tia.
Ulrich Schmidt