openresty / meta-lua-nginx-module

Meta Lua Nginx Module supporting both Http Lua Module and Stream Lua Module
66 stars 20 forks source link

Share identical compilation units directly between http and stream modules #24

Open agentzh opened 6 years ago

agentzh commented 6 years ago

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 :)

agentzh commented 6 years ago

This can make the resulting binary smaller by avoiding binary code duplication in the final executable.

thibaultcha commented 4 years ago

Proposal here: https://github.com/openresty/meta-lua-nginx-module/pull/76