Skip to content

Commit

Permalink
perf(token): Allow optimizer remove branch
Browse files Browse the repository at this point in the history
Not entirely clear if its needed in this case but I generally have found
that these const conditionals seem to provide more optimized results.

I did a `rg is_partial_support -A 4` to see if any others had this
problem and this seemed to be isolated.

Fixes #404
  • Loading branch information
epage committed Dec 27, 2023
1 parent 0256194 commit 248f3b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/token/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ where
if <I as StreamIsPartial>::is_partial_supported() {
any_::<_, _, true>(input)
} else {
any_::<_, _, true>(input)
any_::<_, _, false>(input)
}
})
.parse_next(input)
Expand Down

0 comments on commit 248f3b6

Please # to comment.