chaoslawful/lua-nginx-module — pull request #170 by bakins (2012-10-19 02:48:41+00:00)
Title: Shdict keys list

As discussed in #168

I iterate through the queue twice so that I can pass number to lua_createtable. This is potentially slow, but trades CPU for memory. I'm not sure how long lua_createtable may "block" -- it's called while holding the lock. If we are not so concerned with potential memory allocations, we could just create the table with a decent default 2nd argument or kepe track of number of elements in a different way.