From 8389d8a11293616ce5a4358651aede271871248d Mon Sep 17 00:00:00 2001 From: Alisa Sireneva Date: Sun, 11 Aug 2024 16:10:35 +0300 Subject: [PATCH] Don't run the slow algorithm from the beginning --- src/read.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/read.rs b/src/read.rs index 96784b827..9e652d760 100644 --- a/src/read.rs +++ b/src/read.rs @@ -465,6 +465,7 @@ impl<'a> SliceRead<'a> { } } + self.index += rest.len() / STEP * STEP; self.skip_to_escape_slow(); }