diff options
author | 2021-04-10 19:56:35 +0100 | |
---|---|---|
committer | 2021-04-11 03:56:35 +0900 | |
commit | b9eade12a57b923a54376762ae908da1cff6bcd4 (patch) | |
tree | 1702b9e29d0bea6193af28f943b7d34bba2bfaec /tests/test_bytes_vec_alloc.rs | |
parent | 3d5624a452af67e323ead2855e26b583163e5b99 (diff) | |
download | bytes-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