FROM :https://groups.google.com/forum/#!topic/openresty/dxbBP84-hr0
table.new(narray, nhash) 两个参数分别代表table里是array还是hash的
table.new(10, 0) 或者 table.new(0, 10) 这样的,后者是 hash 性质的 table
Lua table 可以同时拥有数组部分和哈希部分。在物理上,
table.new(100, 200) 也是完全合法的。
table.new(narr, nrec) 接口是标准 Lua C API 函数 lua_createtable() 的 Lua 版本:
http://www.lua.org/manual/5.1/
另外,不同于使用了 lua_createtable() 的 lua_CFunction,table.new() 是可以被 JIT 编译的。
table.new() 一般用于给 lua table 预分配空间。否则 table
会在插入新元素时自增长,而自增长是高代价操作(