hashgraph / hashgraph/pbj

Improve performance: writeBytes(InputStream src)

Open
#201 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.