lua-users home
lua-l archive

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


Jasper,

Well, about 2 years ago I posted a patch for Lua 5.3.5 that exposed a 
function that can reserve memory for the array and hash part of a table. [1]
[1] http://lua-users.org/lists/lua-l/2018-12/msg00175.html

Thank you! that is exactly what I was looking for.

The only improvement I can think of, is to create what I want since the beginning rather than reserving/resizing after creation.

Can Lua team add table.create(narray,nash) to the table library in Lua 5.4? Does this make sense?

Thank you very much

   Andrea


--
Andrea Vitali