hashgraph / hashgraph/pbj

Improve performance: ReadableStreamingData.readBytes(BufferedData)

Open
#204 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 implementations of `ReadableStreamingData.readBytes(BufferedData)` use the fastest path when the input is `ByteArrayBufferedData`. Otherwise they use a moderately buffered implementation in the parent interface, or a horribly slow implementation for CharBufferToWritableSequentialData.

Find a way to provide optimal implementations for other kinds of BufferedData that would use bulk data transfer operations (Arrays.copy, Unsafe, and similar.)

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.