Welcome! Log In Create A New Profile

Advanced

Re: Request: Omit library man pages and extraneous data by default.

Marcus Clyne
December 14, 2009 02:18AM
I agree with your comments. This might be useful, though, even if Igor
does make the changes you suggest:

If you're debugging your own code for a module, then all you need to do
is run the installation once for each nginx version / openssl version
etc (including your module's config file). On subsequent tests of your
module, do this:

1) compile your module's code into an object file, making sure that the
path to the ngx headers ($ngx_src_dir/objs) that were generated in the
first compilation is in your include path
2) build a new nginx binary from all the object files that were created
in the first compilation (the list of which you see at the end of the
compilation process - though it might be easiest just to use 'find' to
generate the list automatically), plus the new object file in (1)

This reduces the compilation time to typically less than a second.

Marcus.

kyleb wrote:
> Given the unreliability of using system libraries, nginx really does do it right by building its own PCRE, OpenSSL, and zlib. However, lots of extraneous stuff gets built for these items (such as manpages). This drastically increases nginx build time, particularly for the OpenSSL part.
>
> Just try building nginx repeatedly for debugging purposes, and watching those openssl manpage installations scroll by again and again, eating precious iops and wall-clock time for no reason whatsoever---complete waste!
>
> If the nginx make system ran configure on its libraries to omit the all stuff nginx doesn't actually need, this would not waste resources, and would significantly speed up build times. Really, nginx should tell configure to just build the static libraries.
>
> Mr. Sysoev, in the long term, the cumulative time you would save yourself on test builds would probably more than make up for the time you spend fixing this. ;-)
>
> Thanks.
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,30305,30305#msg-30305
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>



_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Request: Omit library man pages and extraneous data by default.

kyleb December 13, 2009 06:20PM

Re: Request: Omit library man pages and extraneous data by default.

Marcus Clyne December 14, 2009 02:18AM

Re: Request: Omit library man pages and extraneous data by default.

Igor Sysoev December 14, 2009 11:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 318
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready