[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: table.new in 5.3?
- From: Dirk Laurie <dirk.laurie@...>
- Date: Mon, 25 Nov 2013 18:31:25 +0200
2013/11/25 Philipp Janda <email@example.com>:
> 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?