bytes
bytes copied to clipboard
Is the conversion from bytes to Vec<u8> O(1)
Is the conversion from bytes to Vec
Or do we still have new allocations and copying?
I looked at https://github.com/tokio-rs/bytes/pull/547, it seems to suggest that it indeed is O(1) but the docs say
Copies self into a new Vec.