> Make sure that you define
>
> #define LZO_EXTRA_BUFFER(len) ((len)/64 + 16 + 3)       /* LZO worst case
size
> expansion. */
>
> for zlib.
>

OK thanks for the response.  Upon closer investigation, I
found that it is my own problem. The LZO_COMPRESS is
taking the parameters as (source, source_len, dst, dest_len)
whereas zlib compress is  (dest, dest_len, source, source_len).

Therefore I just turned them around. It is now working !!!

My next question is whether anyone has a comparison of LZO
and zlib in terms of relative time taken to compress. In addition,
the zlib compress2() has a compression level parameter, I would
also need to know how it fairs comparing with compress().

Thanks once again.









Reply via email to