✓ Accepted answer
when you print a table or a function, it will say something like:
table/function:
that specific hex number shows its position in memory, now when i ran this code:
print({})
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
script.Parent.AncestryChanged:Connect(function()end)
wait()
print({})
then it printed:
table: 360DF298
table: 366A1638
converting these numbers we get
906883736
912922168
im not sure what to do with these numbers because printing a blank table time to time could print a durastically different number, so i would not count on it, i does not appear to effect performance but i would still consider using a better method than what you have shown
2 comments
ill try testing it
Every function call made on an event is a new thread. This would have a small impact on performance as this thread then needs to be managed.