Skip to content

BufRead requirement is paternalistic and impractical #3172

@TheBlueMatt

Description

@TheBlueMatt

While its true that reading rust-bitcoin types directly without a buffer is gonna be slow, sadly the Rust world uses the Read type everywhere, not BufRead. As a result, in many cases, you end up with a Read that you have to read bitcoin data out of...which you can't. The BufRead requirement was a cool idea in that it forced people to do a more efficient thing, but the less efficient thing isn't actually wrong, just slower, so should just be dropped IMO.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions