Lua has the #
operator to compute the "length" of a table being used as an array. In a language such as C, after you've computed the length of something, you typically don't compute it again. e.g. int len = strlen(string);
Is this any different in Lua? Is one less efficient than the other?
(Obviously this probably won't show a noticeable difference for fairly small tables, but it's never bad to know.)