Dividing the data into blocks will reduce the compression ratio and is unlikely to improve the speed.
The basic idea of โโ"splitting into small blocks" is to improve access : let's say you want to read a file segment at the PX position, then you will immediately know that it is stored in the block BY = PX / Block size. Therefore, instead of decoding the entire file, you only decode the block.
What is it. If you are looking for better speed, you will have to use some other compression algorithm, such as Snappy or LZ4 , which are known to compress and decompress several times faster than zlib.
source share