lua-users home
lua-l archive

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


> On 28 Mar 2018, at 8.53, Michael Flad <michaelflad@clawdesign.com> wrote:
> 
> Another big downside besides performance and the handling of empty slots is
> actually that I have to create my arrays by sequentially filling them after
> construction, potentially triggering multiple reallocs and in the end

Yep, this is exactly why I added table.resize() for setting the array size in my patch. It can also be used to downsize the array if needed.

Petri