[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: AW: Lua 5.4-work1 with first class arrays (implementation & benchmarks)
- From: Petri Häkkinen <petrih3@...>
- Date: Wed, 28 Mar 2018 21:32:30 +0300
> 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