Hello!
On Fri, Dec 12, 2014 at 3:17 PM, Yichun Zhang (agentzh) wrote:
> Hi folks
>
> I recently updated the TODO list of ngx_lua:
>
Sorry, I missed one nontrivial thing that is coming soon. That is,
integrating luajit-mm [1] into OpenResty's bundled LuaJIT by default.
The luajit-mm thing pushes the GC-managed memory limit in LuaJIT from
1GB to 2GB on (Linux) x86_64, which means if we have N nginx workers,
then we can use (for total) up to 2 x N GB GC-managed memory on the
Lua land. This can help many memory-intensive Lua apps survive traffic
peaks. The luajit-mm project is contributed by my colleague, Shuxin
Yang. Once we have resolved the pointer sign extension limitation in
LuaJIT's JIT compiler, we can further raise the limit to 4GB
(hopefully this can happen in the year 2015).
I am also going to bundle his new JSON library, lua-resty-json, in
OpenResty releases once it is mature enough. Its decoder is much
faster than lua-cjson for many cases and will not abort JIT
compilation.
Regards,
-agentzh
[1] https://github.com/cloudflare/luajit-mm