My sqlite-compression extension needs to support gzip testing in addition to compression/decompression. Currently I do it with decode(data).is_ok(), but that causes a lot of unnecessary memory allocation and possibly other steps. Is there a way to efficiently validate the content of the gzip stream without allocating/re-allocating output buffers?
My sqlite-compression extension needs to support gzip testing in addition to compression/decompression. Currently I do it with
decode(data).is_ok()
, but that causes a lot of unnecessary memory allocation and possibly other steps. Is there a way to efficiently validate the content of the gzip stream without allocating/re-allocating output buffers?