Skip to content
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

nwalfield's streaming reader #122

Merged
merged 10 commits into from Mar 8, 2020
Merged

Conversation

marshallpierce
Copy link
Owner

Continuing from #106.

@codecov-io
Copy link

codecov-io commented Nov 20, 2019

Codecov Report

Merging #122 into master will increase coverage by 0.08%.
The diff coverage is 96.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #122      +/-   ##
==========================================
+ Coverage   95.85%   95.93%   +0.08%     
==========================================
  Files          12       14       +2     
  Lines        1447     1699     +252     
==========================================
+ Hits         1387     1630     +243     
- Misses         60       69       +9
Impacted Files Coverage Δ
src/lib.rs 92.3% <ø> (ø) ⬆️
src/read/decoder.rs 92.7% <92.7%> (ø)
src/read/decoder_tests.rs 98.71% <98.71%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update da57bf5...61af8bc. Read the comment docs.

Turns out the initial, simple implementation didn't handle cases where slow or otherwise unpredictable delegate `Read`ers wouldn't provide as many bytes as we asked for, which meant there has to be a lot more bookkeeping. Also, only one nontrivial buffer is needed now.
@marshallpierce marshallpierce marked this pull request as ready for review November 24, 2019 21:51
@marshallpierce
Copy link
Owner Author

@nwalfield take a look when you get a chance

@marshallpierce marshallpierce merged commit 5d3970e into master Mar 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants