Improve performance: writeBytes(InputStream src)
Open
Good First Issue
- Dominant language
- Java
- Stars
- 44
- Forks
- 15
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 12
Description
The default implementation at `WritableSequentialData.writeBytes(InputStream src)` uses a small 8 KB buffer to run the operation in a more-or-less optimal way. However, the `ByteArrayBufferedData.writeBytes(InputStream src)` provide a more superior implementation that attempts to write the entire buffer at once.
See if other implementations of the `WritableSequentialData` interface could also provide more optimal versions of the `writeBytes(InputStream src)` method - applicable to *BufferedData, WritableStreamingData, and CharBufferToWritableSequentialData.
For more details, see https://github.com/hashgraph/pbj/issues/191
Contributor guide
Assessment
This issue has not been assessed yet.