Skip to content

Commit 8389d8a

Browse files
committed
Don't run the slow algorithm from the beginning
1 parent 1f0dcf7 commit 8389d8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/read.rs

+1
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ impl<'a> SliceRead<'a> {
465465
}
466466
}
467467

468+
self.index += rest.len() / STEP * STEP;
468469
self.skip_to_escape_slow();
469470
}
470471

0 commit comments

Comments
 (0)