Skip to content

Commit

Permalink
add comment about performance
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Oct 31, 2023
1 parent 20920b5 commit 2961795
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ impl<'a> Parser<'a> {
self.index += SIZE + 1;
Ok(())
}
// TODO very sadly iterating over expected cause extra branches in the generated assembly
// and is significantly slower than just returning an error
_ => {
self.index += 1;
for c in expected.iter() {
Expand Down

0 comments on commit 2961795

Please sign in to comment.