Does referencing a table take the same memory as creating a new one?

Here’s a good test pulled from Basics of Basic Optimization

local function TestFunction()
	--Insert the code to tesst
end

local Start = tick() --Start time in seconds
for i = 1, 1000 do --For 1,000 times...
	TestFunction() --Call TestFunction
End
print(tick()-Start) --End time in seconds
1 Like