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-12 years ago30 downloads

Dependencies

lua >= 5.1

Manifests