[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Performance problem with 0-based arrays
- From: Scott Morgan <blumf@...>
- Date: Wed, 25 Nov 2020 02:10:54 +0000
On 24/11/2020 19:30, Petri Häkkinen wrote:
> Perhaps it’s again time to consider adding table.new? Rehashing is heavy
> when initializing these kind of large tables...
Maybe a new lib, 'array', that not only adds the 'new' construct but
also wraps up a given Lua tables with other array features via metatable
(fixed length with nils being the common issue that crops up here)
It could be done by a third party (although an official part of the Lua
distribution would help stop the eternal moaning :) )
Scott