From 06ca80a52951575b851b1af7bc97269c8bca7a10 Mon Sep 17 00:00:00 2001 From: Sofia Date: Sun, 26 Jul 2026 23:42:36 +0300 Subject: [PATCH] Read replay faster as well --- rust/src/replay.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/replay.rs b/rust/src/replay.rs index 311ba0a..2a15cba 100644 --- a/rust/src/replay.rs +++ b/rust/src/replay.rs @@ -43,7 +43,7 @@ impl StandaloneReplayManager { if let Some(mut file) = FileAccess::open(path, ModeFlags::READ) { let mut bytes = Vec::new(); while !file.eof_reached() { - bytes.push(file.get_8()); + bytes.extend(file.get_buffer(1_000_000).to_vec()); } let bytes = Cursor::new(&mut bytes);