Marwes / combine

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

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

Closed Marwes closed 2 years ago

Marwes commented 2 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