lua-users home
lua-l archive

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

2013/11/25 Philipp Janda <>:

> I'm interested in that as well. I took a look at the (Lua 5.2) source, and
> it seems that a table is only ever resized if Lua can't find an empty slot
> for a new element.

The comments say:

> The actual size of the array is the largest `n' such that at
> least half the slots between 0 and n are in use.

What do you make of that?