Marwes / combine

A parser combinator library for Rust
https://docs.rs/combine/*/combine/
MIT License
1.3k stars 94 forks source link

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

Closed Marwes closed 3 years ago

Marwes commented 3 years ago

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