hardlight icon indicating copy to clipboard operation
hardlight copied to clipboard

Switch compression to Zstd

Open Zk2u opened this issue 2 years ago • 0 comments

We currently use deflate using the zlib C implementation when unpure compression is enabled. Zstd is much faster:

zstd 1.5.1 -1 Ratio: 2.887 Compress 530 MB/s Decompress 1700 MB/s

This issue will change HL to v3 as the wire protocol is changing again, and compression will be set to true or false based on the opening connection header instead of a uint level 0-9.

Zk2u avatar Aug 30 '23 08:08 Zk2u