I have already searched for compression in memory and found many libraries that offer this functionality. zlib seems to be widely used, but it also seems pretty old. I ask if there are new, better alternatives.
The data that I want to compress in memory is a few megabytes (2-16 MB) memory pools, and each of these blocks contains data from two different structures, as well as some pointer arrays. inside blocks there is no special order for structures and arrays, they simply stand out after another when the application should create such an element.
What compression lib would you suggest for this? compression and decompression performance (both) are more important than compression quality.
Also - for compression reasons - would it be better to have separate pools for two different structures as well as arrays, so that each data block that needs to be compressed contains only one kind of data?
This is the first time I intend to use compression in memory, and I know that my question may be too general to give a good answer, but every hint is welcome!
THX!
source
share