apache / apache/bookkeeper

Side effect brought by copy rather than wrap

Open
#4,681 0 comments 0 reactions 0 assignees View on GitHub
type/question
Dominant language
Java
Stars
2k
Forks
976
Avg merge
6d 15h
Merged PRs (30d)
7

Description

**QUESTION**

In ReadEntryProcessorV3, the entry ByteBuf is converted to ByteString by ByteString#copyFrom, Appearently copy is not suitable for a high performance requirement. I mean why not use UnsafeByteOperation here, this seems reduce a unnecessary copy action. Hope I have make it sense and look forward to your reply soon, thanks.

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.