aboutsummaryrefslogtreecommitdiff
path: root/src/bytes.rs
diff options
context:
space:
mode:
authorGravatar Jiahao XU <Jiahao_XU@outlook.com> 2022-03-17 01:11:42 +1100
committerGravatar GitHub <noreply@github.com> 2022-03-16 10:11:42 -0400
commitd4f5023383d233819e727d2b223493ba1c730211 (patch)
tree580e2ed254cfb39ce2c1eb6b52d7946dff5bff55 /src/bytes.rs
parent88f5e12350db414c5beac65d488f634fe296223a (diff)
downloadbytes-d4f5023383d233819e727d2b223493ba1c730211.tar.gz
bytes-d4f5023383d233819e727d2b223493ba1c730211.tar.zst
bytes-d4f5023383d233819e727d2b223493ba1c730211.zip
Optimize BytesMut::reserve: Reuse vec if possible (#529)
* Optimize `BytesMut::reserve`: Reuse vec if possible If the `BytesMut` holds a unqiue reference to `KIND_ARC` while the capacity of the `Vec` is not big enough , reuse the existing `Vec` instead of allocating a new one. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Diffstat (limited to 'src/bytes.rs')
0 files changed, 0 insertions, 0 deletions