I am trying to use the zlib based compression for buffer compression. In this case, I am using compress2 function.
compression_success=compress2((Bytef*)compressed_buffer, &compressed_size,(const Bytef*)package_data.pData, (uLongf)orig_size, 1);
And for decompression I am using uncompress function.
uncompress_success=uncompress((Bytef*)destination, &UnCompSize, (const Bytef*)package_data.pData, package_data.cbData);
The problem is that the system tend to be very slow. I have heard that the other functionalities of the zlib compression library like inflate and deflate can be very useful.
Please let me know if there is any ideas for it.