`BytesMut::reserve` should avoid small allocations
This change tracks the original capacity requested when `BytesMut` is first created. This capacity is used when a `reserve` needs to allocate due to the current view being too small. The newly allocated buffer will be sized the same as the original allocation.
Loading
Please register or sign in to comment