Store replay whole buffer at a time
This commit is contained in:
parent
9747681d75
commit
212a10e16c
@ -351,9 +351,7 @@ impl ReplayRecorder {
|
|||||||
let mut buf = Vec::new();
|
let mut buf = Vec::new();
|
||||||
let cursor = Cursor::new(&mut buf);
|
let cursor = Cursor::new(&mut buf);
|
||||||
ciborium::into_writer(&self.replay, cursor).ok();
|
ciborium::into_writer(&self.replay, cursor).ok();
|
||||||
for byte in buf {
|
file.store_buffer(&PackedArray::from_iter(buf));
|
||||||
file.store_8(byte);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user