Skip to content

ZlibCompressor seems not to respect compression level #152

@asinghvi17

Description

@asinghvi17

Zarr.jl/src/Compressors.jl

Lines 139 to 147 in f436713

function zuncompress(a, ::ZlibCompressor, T)
result = transcode(CodecZlib.ZlibDecompressor,a)
_reinterpret(Base.nonmissingtype(T),result)
end
function zcompress(a, ::ZlibCompressor)
a_uint8 = _reinterpret(UInt8,a)[:]
transcode(CodecZlib.ZlibCompressor, a_uint8)
end

It looks like the clevel field in the compressor is not accessed, even in zcompress? Not sure if this is intentional or I am missing something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions