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
FS2 - Remove "elide empty chunks" #4351
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When did this become true? FS2-3 or FS2-2? Is this something that could also be done on an earlier release?
I found about this invariant this week, but it would be interesting to know how far it extends. If one would like to find out, here is what has to be done: checkout the release of |
It appears that's true in fs2-2.5, in which case we could do the same all the way back to 0.21. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good after the comment is stripped. I'll probably try to cherry-pick it to 0.21, unless you want to reopen with the same logic against that.
The FS2 library, by construction, guarantees that the `uncons` will never give, in the result, a non-empty chunk.
5a8a54d
to
b16d2ba
Compare
The FS2 library, by construction, guarantees that the `uncons` will never give, in the result, a non-empty chunk.
It cherry-picked cleanly to series/0.21! 🎉 |
Well, I should have run the tests instead of relying on reason and the compiler:
I'm going to revert the cherry-pick and merge the original. |
This reverts commit 22f24b8.
The FS2 library, by construction, guarantees that the
uncons
does not give, in the result, a non-empty chunk.