bytesize
numcodecs_observers.bytesize
This module defines the BytesizeObserver class, which measures the byte size of the data before and after encoding / decoding.
Classes:
-
Bytesize–Stores the data size in bytes before and after encoding / decoding.
-
BytesizeObserver–Observer that measures the byte size of the data before and after encoding / decoding.
Bytesize
dataclass
Stores the data size in bytes before and after encoding / decoding.
BytesizeObserver
BytesizeObserver()
Bases: CodecObserver
Observer that measures the byte size of the data before and after encoding / decoding.
The list of measurements are exposed in the
encode_sizes
and
decode_sizes
properties.
encode_sizes
property
encode_sizes: Mapping[HashableCodec, list[Bytesize]]
Per-codec-instance measurements of the byte size of the data before and after encoding.
decode_sizes
property
decode_sizes: Mapping[HashableCodec, list[Bytesize]]
Per-codec-instance measurements of the byte size of the data before and after decoding.