So, I'm learning about encrypt and working in my own encrypt using some lib. But my question is: - Why manys MMORPG use zlib? In some benchmarks, the performance of zlib is bad compared with anothers libs...
I worked on similar stuff just recently. lz4_fast is really awesome in terms of speed and with a good compression ratio so it's good for real time data or when uncompressing lot of data like big archives.
lzo is not so good in my opinion, in a "challenge" between lzo1, lzo1x and lzo2a the last one is the best.
If you have to compress a big amount of data with the best compression ratio then lzma and lzma2 are the choice.
Anyway the thread is twice off-topic: wrong section (Code talk was the good one) and encryption and compression mixed.
Because zlib has a very flexible API interface and is supported/wrapped on many programming languages. It allows to keep the dictionary/state for using the compression on multiple blocks of data and do other things.
In the fast compression libraries only lz4 has something similar.
While for the libraries used to compress big amount of data there is lzma that is flexible and portable almost like zlib.