How should I delete a table?

Should I delete the table with:

table = {}

or

table = nil

??? Which is more memory efficient/faster?

If you’re not going to be needing the table anymore, declaring it to nil will be more efficient.

table = nil
4 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.