LuaRocks.org had a security incident in September 2026. Read the incident report.

createtable

Bindings for the lua_createtable() function

$ luarocks install createtable

This function is useful for pre-allocating tables with a given number of array/hash slots, without any incremental growth or rehashing. This can improve performance when the number of slots is large and known ahead of time.

Versions

0.2-16 years ago109 downloads

Dependencies

lua >= 5.1

Manifests