Skip to content

Commit

Permalink
Don't run the slow algorithm from the beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
purplesyringa committed Aug 11, 2024
1 parent 1f0dcf7 commit 8389d8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ impl<'a> SliceRead<'a> {
}
}

self.index += rest.len() / STEP * STEP;
self.skip_to_escape_slow();
}

Expand Down

0 comments on commit 8389d8a

Please sign in to comment.