Guanlan D.

Results 4 issues of Guanlan D.

lua_newtable function is equivalent to lua_createtable(L, 0, 0). The rehashing will cost too much time. The benchmark show the preallocate is faster ~30% than original version on random data.

This tool analyzes shared memory dict and tracks dict operations in the specified running nginx process.