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.

@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

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
Copy link
Collaborator

@folkertdev folkertdev left a comment

Choose a reason for hiding this comment

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

Fixed up some comments and squashed the commits

@folkertdev folkertdev merged commit 1ed41c4 into trifectatechfoundation:master Oct 16, 2025
12 checks passed
@folkertdev
Copy link
Collaborator

Version 0.6.1 has been published, which includes the new functions.

@NobodyXu NobodyXu deleted the patch-1 branch October 16, 2025 14:21
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.

3 participants