Open andr1972 opened 7 years ago
Was out_len too small:
out_len = compressBound(IN_LEN);
int cmp_status = compress(out, &out_len, in, in_len);
slow for small buffers because for small buffer it must init big dictionaries, I think.
I write test how big enough must be buffer for good compression
Often cmp_status != Z_OK and is very slow for small buffers.