EOSIO/Documentation

[Enhancement] Better Compression Types for Smart Contracts

jjxtra opened this issue · 1 comments

Just read Dan's steemit post about zlib compression for smart contracts. I would suggest that either ZStandard or LZMA2 with max compression levels be used for the compression, as these will give better compression results compared to zlib.

The ZStandard license (BSD) is more friendly than tha LZMA2 license (GNU LGPL).

Having a compression type field in the smart contract data structure would allow more compression types in the future. Who knows, in 5 years a new compression type may come out that is much better than even ZStandard or LZMA2.

When adding new compression types, you would roll out the decompression support first, wait several months until everyone updates, then roll out the compression support.

If memory use is a concern, ZStandard could be used over LZMA2.

Thanks for reading and considering.

Moving to other git repo, sorry...