meta-lua-nginx-module
meta-lua-nginx-module copied to clipboard
Share identical compilation units directly between http and stream modules
trafficstars
Some compilations units like shdict.c, string.c, lex.c, regex.c, and etc, could share the object code directly between http and stream modules in the final nginx executable. We could simply make the http and stream lua module depend on this meta lua module not only at codegen time, but also at compile and link time :)
This can make the resulting binary smaller by avoiding binary code duplication in the final executable.
Proposal here: https://github.com/openresty/meta-lua-nginx-module/pull/76