| Age | Commit message (Collapse) | Author | Lines |
|
This reverts commit da8ac73d910a446e796f511c0dda97e49d14f044.
|
|
|
|
|
|
This fixes a performance regression caused by making `Buffer`
non-generic in #97004.
|
|
`u8` is the only type that makes sense for `T`, as demonstrated by the
fact that several impls and functions are hardwired to `Buffer<u8>`.
|
|
See https://github.com/rust-lang/rust/pull/85390#discussion_r662464868
|
|
This allows a more efficient implementation (avoiding a fallback to memmove,
which is not optimal for short writes).
This saves 0.29% on diesel.
|
|
This is a 0.15% win on diesel.
|
|
copy_from_slice generally falls back to memcpy/memmove, which is much more expensive
than we need to write a single element in.
This saves 0.26% instructions on the diesel benchmark.
|
|
|