ByteBuf returned by BookKeeper triggers CRC Checksum calculation when calling "readBytes"
Open
type/bug
- Dominant language
- Java
- Stars
- 2k
- Forks
- 976
- Avg merge
- 6d 15h
- Merged PRs (30d)
- 7
Description
**BUG REPORT**
***Describe the bug***
I have developting a Pulsar BrokerInterceptor. The BrokerInterceptor is able to process the data that Pulsar read from BookKeeper, without memory copies.
While analysing a flamegraph I have seen that the ByteBuf returned by BookKeeper shows this weird behaviour and uses lot of CPU.
This is a flame graph. The version of BookKeeper is based on latest 4.16.x

***To Reproduce***
See the flamegraph
***Expected behavior***
readBytes has very little overhead
Contributor guide
Assessment
This issue has not been assessed yet.