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:
Erick Tryzelaar
2014-09-07 01:19:36 -07:00
parent bb361086b3
commit 6b2adccf60
2 changed files with 282 additions and 93 deletions
+1 -1
View File
@@ -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();