Skip to content

Re-visit Witness::from_slice and Decodable #3469

@tcharding

Description

@tcharding

Witness::from_slice and Decobale use different allocation strategies for reasons that are not immediately obvious (decoding must be done in a single parse where as from_slice can iterate the input multiple times.

This caused a bunch of discussion when moving to primitives, we should re-visit this code and see if we can do anything about it.

ref: #3406 (comment)

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