meta-lua-nginx-module icon indicating copy to clipboard operation
meta-lua-nginx-module copied to clipboard

Share identical compilation units directly between http and stream modules

Open agentzh opened this issue 7 years ago • 2 comments
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 :)

agentzh avatar Jan 22 '18 00:01 agentzh

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

agentzh avatar Jan 22 '18 00:01 agentzh

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

thibaultcha avatar Apr 02 '20 01:04 thibaultcha