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
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
PartialBufferAPI, if we want to keep backwards compatibility we can introduce a new traitBufferso that user can still pass[u8].But if we decided not to, then we can redesign
PartialBufferto support it, while also removing the generics for #385The only sad thing is that we might need to cut a major release of async-compression, because it re-exports core and codecs