You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in numcodecs, Codec.decode takes an out parameter, which is an optional buffer-like for storing the result of decoding. encode does not, which seems strange, because this means encode will always allocate new memory (someone correct me if I'm off base here).
in zarr-python, neither our encoding or decoding routines take an out parameter, which I think entails that every codec allocates memory every time it encodes / decodes?
so I have 2 questions:
should we change the zarr-python codec API to allow an out parameter for the decode functions?
should we do the same thing for the encode functions?
The text was updated successfully, but these errors were encountered:
in numcodecs,
Codec.decode
takes anout
parameter, which is an optional buffer-like for storing the result of decoding.encode
does not, which seems strange, because this meansencode
will always allocate new memory (someone correct me if I'm off base here).in zarr-python, neither our encoding or decoding routines take an
out
parameter, which I think entails that every codec allocates memory every time it encodes / decodes?so I have 2 questions:
out
parameter for the decode functions?The text was updated successfully, but these errors were encountered: