Skip to content

Use check output mode in not combinator#1850

Open
appellation wants to merge 1 commit into
rust-bakery:mainfrom
appellation:will/not-check
Open

Use check output mode in not combinator#1850
appellation wants to merge 1 commit into
rust-bakery:mainfrom
appellation:will/not-check

Conversation

@appellation
Copy link
Copy Markdown

The not combinator doesn't actually use the output of its child parser, so it seems reasonable to force the output mode to Check as a performance optimization. In a reasonably complex parser, this has improved by ~10% and up to 25% in some scenarios.

@appellation appellation requested a review from Geal as a code owner April 21, 2025 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant