aboutsummaryrefslogtreecommitdiff
path: root/tests/test_bytes_vec_alloc.rs
diff options
context:
space:
mode:
authorGravatar Stepan Koltsov <stepan.koltsov@gmail.com> 2021-04-10 19:56:35 +0100
committerGravatar GitHub <noreply@github.com> 2021-04-11 03:56:35 +0900
commitb9eade12a57b923a54376762ae908da1cff6bcd4 (patch)
tree1702b9e29d0bea6193af28f943b7d34bba2bfaec /tests/test_bytes_vec_alloc.rs
parent3d5624a452af67e323ead2855e26b583163e5b99 (diff)
downloadbytes-b9eade12a57b923a54376762ae908da1cff6bcd4.tar.gz
bytes-b9eade12a57b923a54376762ae908da1cff6bcd4.tar.zst
bytes-b9eade12a57b923a54376762ae908da1cff6bcd4.zip
Specialize copy_to_bytes for Chain and Take (#481)
Avoid allocation when `Take` or `Chain` is composed of `Bytes` objects. This works now for `Take`. `Chain` it works if the requested bytes does not cross boundary between `Chain` members.
Diffstat (limited to 'tests/test_bytes_vec_alloc.rs')
0 files changed, 0 insertions, 0 deletions