Skip to content

Docs don't explain how to choose between bufread/read/write #511

@Zalathar

Description

@Zalathar

The encoders and decoders in this crate are available in three variants: bufread, read, and write. This makes it necessary for users to choose a variant before they can compress or decompress anything.

However, the crate documentation gives almost no indication of what the practical differences are, or why someone would choose one over the others.

  • Is one of them a sharp-edged performance hazard?
  • Is one of them a “safe” default choice, at the risk of being sub-optimal?
  • Given that encoding/decoding is orthogonal to reading/writing, what is the intended use case for each combination?
  • What's best for the simple cases of decoding an entire file into memory, or encoding a memory buffer into a file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationThe API documentation needs a change.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions