Originally Posted by sticklord
1: Put them in private table, so that it doesn't clutter the global namespace mostly. It also is quicker to lookup.
|
The lookup time is about the same if the global lookup was written correctly. An indexing operation on a local table is the same as an indexing operation on the global environment. However, as written, the global table is being indexed twice, once to retrieve itself at
_G and again to access the variable given.