Hi, I've built the latest Openresty 1.5.8.1 and I'm trying to understand how to benefit from the optimisations provided by lua-resty-core.
After building Openresty I've tried to find some *.luac, or *.a, or *.o files somewhere in /usr/local/* but I didn't find any file pointing to lua-resty-core; instead I was able to find the *.lua files in /usr/local/openresty/lualib/resty/core/* .
So my question is when is lua-resty-core compiled to LuaJIT ? At build time, or at runtime ?
Reading on the thread at [1], I see that we need to define a block:
init_by_lua '
require "resty.core"
';
And in the lua-resty-core code - [2] I'm reading that: "..."
So my question is if we need to compile this module before hand, or if it get compiled at runtime. If we have to compile it before hand, is the "statically link" described at [3] the only way to link the lua module ?
Thanks,
Dragos Dascalita Haut
[1] - https://groups.google.com/forum/#!searchin/openresty-en/lua-resty-core/openresty-en/KJq6IWzGcnY/FkdBy3SZxiEJ
[2] - https://github.com/agentzh/lua-resty-core
[3] - https://github.com/chaoslawful/lua-nginx-module#statically-linking-pure-lua-modules