You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
ileixe
changed the title
[Question] Is it reasonable to have cost efficient
[Question] Is it reasonable to have cost efficient constructor for BytesMut?
Feb 1, 2023
Currently,
BytesMut
seems to require buffer allocation when converted from other types: https://docs.rs/bytes/latest/src/bytes/bytes_mut.rs.html#1172Is there any reason not to provide allocation-free
BytesMut
constructor like https://docs.rs/bytes/latest/src/bytes/bytes.rs.html#843? (I'd like to useBox<[u8]>
to createBytesMut
as well. )The text was updated successfully, but these errors were encountered: