Rewrite Bytes / BytesMut core implementation

The previous implementation didn't factor in a single `Bytes` handle
being stored in an `Arc`. This new implementation correctly impelments
both `Bytes` and `BytesMut` such that both are `Sync`.

The rewrite also increases the number of bytes that can be stored
inline.
This commit is contained in:
Carl Lerche
2017-02-20 10:41:20 -08:00
parent 0360f191f8
commit cf5a1bc4f1
9 changed files with 1184 additions and 500 deletions
+718 -444
View File
File diff suppressed because it is too large Load Diff