mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-14 03:31:02 +00:00
speed up the tests to 249MB/s (!!) by copying over the MyMemWriter1
for some reason, having MyMemWriter1 in scope makes everything much faster.
This commit is contained in:
@@ -563,7 +563,7 @@ impl MyMemWriter1 {
|
||||
}
|
||||
|
||||
// LLVM isn't yet able to lower `Vec::push_all` into a memcpy, so this helps
|
||||
// MemWriter eke out that last bit of performance.
|
||||
// MemWriter eke out that last bit of performance.
|
||||
//#[inline(always)]
|
||||
fn push_all_bytes(dst: &mut Vec<u8>, src: &[u8]) {
|
||||
let dst_len = dst.len();
|
||||
|
||||
Reference in New Issue
Block a user