I am the author of
LibDeflate
LibDeflate is a pure Lua compression library implementing Deflate/zlib algorithm (The algorithm used by ZIP)
Its compression ratio is much higher than an old project
LibCompress, with similar compression/decompression speed. The performance statistic is on
Github
I suggest to try this library, if there are many communications in your addon.
Documentation is host on Github.
Though recently uploaded to WowInterface, LibDeflate has been uploaded to Curseforge for a while,
and has been used by several popular WoW addons, including
WeakAuras2 and
Total-RP-3
It is very important to take backward compatibility into account, when switching to this library to compress communication data, especially when library similar to LibCompress is already in use.
Sample code to use LibDeflate in real project (with backward compatibility consideration with LibCompress):
WeakAuras commit c46a8f2621