deps/zstd/README.md
This directory contains the zstd compression library used by ProxySQL for compressed protocol support in MySQL and PostgreSQL connections.
The library is built automatically by the ProxySQL build system:
cd deps/zstd && tar -zxf zstd-1.5.7.tar.gz
cd zstd/zstd/lib && make libzstd.a
zstd is statically linked into ProxySQL to eliminate runtime dependencies on system libraries. This ensures consistent behavior across different platforms (Linux, macOS, FreeBSD).
mysql_compression)mysql_data_stream.cpp and MySQL_Protocol.cpp