I need some compression/decompression routines in C
i need very fast decompression, but don't care how long the compression takes. i can't emphasize that enough; the project will involve real time extraction of decoded in-memory data and decompression speed is of the essence. The compression side can be as expensive as it needs to be.
i will have discreet chunks of data that i want to pass in and retrieve.
so, i will want to call it like this to compress
void *handle;
handle = compress_init(); // any initialization
// i'll call this repeatedly.
id = compress(handle, unsigned char *,int length);
// then i'll want the compressed data
int length;
length = compress_size(handle);
char *data = malloc(length);
compress_getdata(handle,data);
/////// end of compression phase
for decompression there will be a first time init
handle = decompress_init(data,length);
and then i'll want to extract the data via the id returned during the 'compress'
int length = decompress_size(handle,id);
data = malloc(length);
decompress_getdata(handle,id,data);
// Notes
the same patterns will appear across the different data sets, so have the compression/decompression be able to re-use these patters.
speed of extraction is critical. it is more important than space, although this does need to be compressed. The best algorithm is one that is front-loaded in terms of computation time.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Straight C code.