Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Copy buffers when reading a URL from an InputStream #1202
When reading an inputStream, we'll upgrade to
We could also solve this on the writer side by copying only when we buffer. But then we'd be copying for all sources, not just those derived from an InputStream. Furthermore, anything else that consumes from readInputStream in any complicated way could reintroduce the bug. I thought it was best to cut of the mutability at the source.
I think changes to fs2 could make this more efficient.