Skip to content

zstd: Extra encoders and decoders allocated when working with stream APIs #235

Closed
@jpchen-lightstep

Description

@jpchen-lightstep

It looks like the encoders allocated in Encoder.initialize are only used when EncodeAll is called. When exclusively using the stream-based API, these encoders appear to be unused. A similar issue exists with the frame decoders on the decoding side.

Any advice on how to avoid these extra allocations? I'm working in an environment where we are only using the stream APIs and would like to optimize memory usage. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions