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 cursor = Cursor::new(&mut buf);
|
||||
ciborium::into_writer(&self.replay, cursor).ok();
|
||||
for byte in buf {
|
||||
file.store_8(byte);
|
||||
}
|
||||
file.store_buffer(&PackedArray::from_iter(buf));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user