Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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.