Hello!
On Wed, Jun 29, 2016 at 9:36 AM, Roy Cohen wrote:
> I've tested it many many times and there might be a big performance gain.
> NGINX is working async with sort of a HOCK mechanism.
> The less modules which involves the hock process the less work NGINX do.
> Let's say that we have several modules which are executed in some phase in
> NGINX, they will be executed in every request.
Well, the truth is almost all the OpenResty modules only register
hooks when you actually reference their directives in your nginx.conf.
This even applies to output filter modules and access/rewrite phase
handler modules, which is unusual in the 3rd-party NGINX module world.
And I'm pretty proud of that.
Significant efforts have been put on ensuring that you do not pay if
you do not use :)
And yes, you can still disable modules at build time via ./configure's
--without-xxx options if you are a minimalist. See ./configure --help
for a complete list of such options.
Best regards,
-agentzh