cloudflare zlib介绍
cloudflare zlib是优化后的zlib,x86-64使用SSE 4.2+指令/ aarch64使用NEON & CRC指令加速gzip压缩和解压缩注意:与其他模块一起使用会出现未知错误,慎用
可以用zlib-ng替代,详情见末尾参考
先编译cloudflare zlib库
git clone https://github.com/cloudflare/zlib.git -b gcc.amd64 cd zlib make -f Makefile.in distclean ./configure make libz.a
nginx编译cloudflare zlib
./configure --with-zlib=../zlib make make install
更多信息,看下面参考
参考:
https://github.com/centminmod/centminmod/blob/master/inc/zlib.inc
https://github.com/zlib-ng/zlib-ng
https://github.com/zlib-ng/patches

此处评论已关闭