From c8cfca05578932567d2c65d59262f398e8acaed2 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Wed, 9 Oct 2013 17:01:22 +0200 Subject: Add table.new(). --- doc/extensions.html | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc') diff --git a/doc/extensions.html b/doc/extensions.html index 33bcfb28..48f4220c 100644 --- a/doc/extensions.html +++ b/doc/extensions.html @@ -208,6 +208,15 @@ minor releases (2.0 → 2.1) or between any beta release. Foreign bytecode (e.g. from Lua 5.1) is incompatible and cannot be loaded.

+

table.new(narray, nhash) allocates a pre-sized table

+

+An extra library function table.new() can be made available via +require("table.new"). This creates a pre-sized table, just like +the C API equivalent lua_createtable(). This is useful for big +tables if the final table size is known and automatic table resizing is +too expensive. +

+

Enhanced PRNG for math.random()

LuaJIT uses a Tausworthe PRNG with period 2^223 to implement -- cgit v1.2.3-55-g6feb