Add lz4 compress/decompress logic.
Add orig_len to data structure to avoid guessing uncompressed size. Have zlib use this as well to avoid xrealloc() calls. (Future improvement to zlib would avoid use of the temporary buffer + memcpy calls.) Note that this is handling each block independently. Stream mode would be better, switch to that in the future for additional performance gains.
Please register or sign in to comment