-
Notifications
You must be signed in to change notification settings - Fork 86
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
Does rust-imap parse things twice? #78
Comments
This seems like an interesting thing to look into, but first what are we looking into? We can see every time
Lines 353 to 358 in 5d0d2f9
The ideal situation would be able to compose different parsers together and iterate over the stream just once. That's just my current understanding, but I haven't written too much Rust yet so still getting my bearings.
Lines 1521 to 1525 in 5d0d2f9
|
It's likely that we can get rid of Lines 1606 to 1621 in 5d0d2f9
Theoretically there's a part of the stream that is "general control", some that's "specific control for the request", and then finally the data we want to parse. We would want to be able to compose these parsers as so: |
See the original issue here: mattnenterprise/rust-imap#78
The text was updated successfully, but these errors were encountered: