Skip to content

Support buffer of [MaybeUninit<u8>] #390

@NobodyXu

Description

@NobodyXu

We should 100% support that, it would enable our users to pass uninitialised buffer for best performance, and our tokio impl in async-compression will be much, much faster after this.

We would start by redesigning our PartialBuffer API, if we want to keep backwards compatibility we can introduce a new trait Buffer so that user can still pass [u8].

But if we decided not to, then we can redesign PartialBuffer to support it, while also removing the generics for #385

The only sad thing is that we might need to cut a major release of async-compression, because it re-exports core and codecs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions