apache / incubator-pagespeed-ngx

Automatic PageSpeed optimization module for Nginx
http://ngxpagespeed.com/
Apache License 2.0
4.37k stars 363 forks source link

nginx has more than 90 megabytes since excluded PSOL #320

Open patschi opened 11 years ago

patschi commented 11 years ago

Since PSOL needs to be downloaded and extracted manually my nginx executable file is larger than about 90 megabytes. I guess the 140 MB folder of psol is the fault of this big filesize. Is there a way to reduce the big executable file?

jeffkaufman commented 11 years ago

The psol directory has four large files and many small ones:

Providing four separate downloads would help here, at the expense of making installation more complicated.

patschi commented 11 years ago

Thanks! I just removed the 32-bit binary files to reduce the size of nginx. Is the Debug binary required for a working pagespeed module?

patschi commented 11 years ago

I currently had a simple idea: What would be with a simple bash script, which automically downloads only the needed one? I would write one, but I don't know if there are own download links of PSOL for x32 or x64 systems.

The execution would be simple as it is - For example: wget -O - https://github.com/pagespeed/ngx_pagespeed/psol-download.sh | bash

vbtechsupport commented 11 years ago

That would be a good idea, I already use bash based script to integrate ngx_pagespeed into Centmin Mod http://centminmod.com/nginx_ngx_pagespeed.html. So would be handy to have download links for 32bit and 64bit versions which you could just match against uname -m variable ?