From 212a10e16c24db2d01db5e49e4efc4b78bbae521 Mon Sep 17 00:00:00 2001 From: Sofia Date: Sun, 26 Jul 2026 23:40:20 +0300 Subject: [PATCH] Store replay whole buffer at a time --- rust/src/replay.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rust/src/replay.rs b/rust/src/replay.rs index e82f63d..311ba0a 100644 --- a/rust/src/replay.rs +++ b/rust/src/replay.rs @@ -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)); } }