lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Philippe Fremy wrote:

For example, if you have a list of 10000 items, a lua table is going to 
store the keys 1 to 10000 and to store the values too. A list would only 
store the values. Iterating upon such a list is also quicker than over the 
equivalent table because a double-linked list is easier to iterate over 
than a list of hash.

	cheers,

	Philippe

this is a non-issue if you just store the data in the key field and nothing in the value field, they just treat the keys as a list, very simple.
either way there is nothing stopping you from writting a simple wrapper 
facade around a table to make it "look" like a list, and if you
are as worried about performance as you seem to be you are probably 
using the  wrong  tool, if performance is such an issue.