Files
tokio/src/io
Sebastian Thiel 5adde38a65 Allocation in get_mut() always uses 8 * 1024 bytes
The previous implementation would always use the capacity
of the previous buffer, which would effectively prevent it
from ever shrinking.

This also means that protocol with greater variance in
possible frame sizes would likely be heavily over-allocating.
If these implementations use zero-copy, this would imply
that even small frames kept alive by the client would use
large amounts of memory.

The change is motivated by the implementation of the
cassandra-protocol, which allows frames of up to 256MB
in size, which solely depend on the kind of query.
2017-02-11 09:01:07 +01:00
..
2017-01-27 22:42:04 +00:00
2016-09-07 21:19:34 -04:00
2016-09-07 21:19:34 -04:00
2016-09-07 21:19:34 -04:00
2016-10-04 13:34:25 +02:00
2016-11-05 11:14:54 -07:00
2016-09-07 21:19:34 -04:00