Reputation: 57545
I'm searching for an ultra-light gzip compression/decompression library in C++ (something definitively lighter than zlib) on a libral (BSD, MIT, PD) license. Googling revealed many libraries, but either they are bloated (like GZ compression in Crypto++) or on a more restrictive license.
It's hard to believe for me, that there's no lightweight free gz implementation...
Preferably C++ (I need to have it in the form of a stream) but C would be ok.
Upvotes: 4
Views: 3971
Reputation: 25513
Statically linked zlib is probably the lightest you can get, it also has a rather nice and generously permissive license.
If it really isn't light enough, even considering what the linker will strip out, then chopping it down to size yourself might be a viable option.
Upvotes: 6
Reputation: 4892
These are pretty lightweight. Generally all it takes is a single function call, assuming all your data is already in the appropriate buffers, which should be easy enough. If you want something even more lightweight than this (which may not be in the grand scheme of things as you potentially need to manage more dependencies), what klamlaluno posted looks good.
Upvotes: 0