Skip to content

Conversation

NobodyXu
Copy link
Contributor

@NobodyXu NobodyXu commented Sep 27, 2025

Having a safe API for MaybeUninit<u8> would be necessary for async-compression to wrap and reduce the performance penalty of initializing the buffer for all tokio::io::* traits implementation.

Also update (de)compress_vec API to use the new API instead of passing a &mut [u8] which technically violates rust's semantics.

Having a safe API for `MaybeUninit<u8>` would be necessary for async-compression to wrap and reduce the performance penalty of initializing the buffer for all `tokio::io::*` traits implementation
@NobodyXu NobodyXu requested a review from bjorn3 September 27, 2025 17:19
@NobodyXu
Copy link
Contributor Author

Simplified the API of (de)compress_inner by passing input: &mut [u8] instead of ptr + len

Copy link
Collaborator

@bjorn3 bjorn3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind squashing your changes?

@NobodyXu
Copy link
Contributor Author

NobodyXu commented Oct 8, 2025

Would squash it this evening

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants