mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-11-23 06:49:55 +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:
1 parent
bb361086b3
commit
6b2adccf60
2 files changed
+282
-93
No files matched your search
@@ -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