Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use more optimized method for Vec<u8> to Bytes conversation
Bytes::from_owner is "generic" method, for any "owners" of [u8], while specialized "impl From<Vec<u8>> for Bytes" can be faster in some cases, for example if capacity==len, then it is almost no-op.
- Loading branch information