Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: Handle restarts better in take_until_byte{,s,2,3} #328

Merged
merged 1 commit into from
Oct 28, 2021
Merged

Conversation

Marwes
Copy link
Owner

@Marwes Marwes commented Oct 28, 2021

These were ignoring the PartialState from take_fn which would cause
them to resume parsing from the start of the "haystack" on every
restart. Fixing the type signature will cause them to retain the usize
state that take_fn uses to skip ahead.

Fixes #327

These were ignoring the `PartialState` from `take_fn` which would cause
them to resume parsing from the start of the "haystack" on every
restart. Fixing the type signature will cause them to retain the `usize`
state that `take_fn` uses to skip ahead.

Fixes #327
@Marwes Marwes merged commit f7ece1b into master Oct 28, 2021
@Marwes Marwes deleted the issue_327 branch October 28, 2021 13:22
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.

take_until_bytes() and partial parsing
1 participant