Skip to content

Commit

Permalink
add missing inlines
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Sep 5, 2024
1 parent 81dbd2d commit 4b29729
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions parser/src/earley/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1595,6 +1595,7 @@ impl BiasComputer for DefaultBiasComputer {
}

impl<'a> Recognizer for ParserRecognizer<'a> {
#[inline(always)]
fn pop_bytes(&mut self, num: usize) {
self.state.pop_lexer_states(num);
}
Expand Down
1 change: 1 addition & 0 deletions parser/src/earley/regexvec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ impl RegexVec {
self.insert_state(vec_desc)
}

#[inline(always)]
pub fn state_desc(&self, state: StateID) -> &StateDesc {
&self.state_descs[state.as_usize()]
}
Expand Down

0 comments on commit 4b29729

Please sign in to comment.