Open epage opened 1 year ago
Specifically cover the cost of large return types which can show up in surprising ways like just using a tuple (#237)
Specifically cover the cost of large return types which can show up in surprising ways like just using a tuple (#230)
@epage This is a question I had, when you say watch for large return types. Is it better to call parse_next multiple times and use regular if else branching?
Instead of trying to purely do it all with combinators?
Examples and more context: https://www.perplexity.ai/search/rust-nom-and-winnow-parsing-is-SaJuUbDxSfu09wjpXcOctA
Though in my example, I’m not actually returning, the tuple.
FYI I've updated my post to point to #237 which is a more appropriate place to discuss that. Moving this thread there.
We should help people in optimizing their parsers, including
dispatch
overalt
BStr
parsing overstr
when possibleSee https://epage.github.io/blog/2021/09/optimizing-toml-edit/ for other ideas
We should use the json parser as the guide. We could show diffs of the examples to show what the changes look like.
Open questions