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

Bytesize(pre: int, post: int)

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

Per-codec-instance measurements of the byte size of the data before and after encoding.

decode_sizes property

Per-codec-instance measurements of the byte size of the data before and after decoding.