Skip to content
Snippets Groups Projects
Commit 933b8b26 authored by Carl Lerche's avatar Carl Lerche
Browse files

`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.
parent b44fc314
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment