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

Micro-optimisation: use IOUtils to copy InputStream to byte array #720

Merged
merged 1 commit into from
Dec 12, 2019

Conversation

cb372
Copy link
Member

@cb372 cb372 commented Dec 12, 2019

This ensures we copy the bytes using a buffer for performance. It will also generate less garbage than using Iterator.continually.

This ensures we copy the bytes using a buffer for performance. It will
also generate less garbage than using `Iterator.continually`.
@codecov
Copy link

codecov bot commented Dec 12, 2019

Codecov Report

Merging #720 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #720   +/-   ##
=======================================
  Coverage   81.67%   81.67%           
=======================================
  Files          73       73           
  Lines        1168     1168           
  Branches       16       16           
=======================================
  Hits          954      954           
  Misses        214      214
Impacted Files Coverage Δ
.../higherkindness/mu/rpc/internal/encoders/pbd.scala 100% <100%> (ø) ⬆️

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 cd1a69a...55a305c. Read the comment docs.

Copy link
Member

@juanpedromoreno juanpedromoreno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@cb372 cb372 merged commit cd8e938 into master Dec 12, 2019
@cb372 cb372 deleted the buffering branch December 12, 2019 16:40
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.

3 participants