Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
perf: Always inline Program's Deref
Shaves of a few percent on dfa heavy regexes such as `RegexSet` use.
  • Loading branch information
Markus Westerlind committed Nov 7, 2018
commit 1a0f55cfba4a9be0f9c90db239269fe66612b743
1 change: 1 addition & 0 deletions src/prog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ impl Program {
impl Deref for Program {
type Target = [Inst];

#[inline(always)]
fn deref(&self) -> &Self::Target {
&*self.insts
}
Expand Down