eolivelli opened a new issue, #4372:
URL: https://github.com/apache/bookkeeper/issues/4372

   **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
   
   
![image](https://github.com/apache/bookkeeper/assets/9469110/2e019824-48bb-4839-a0b8-49a01036b54e)
   
   
   
   ***To Reproduce***
   
   See the flamegraph
   
   ***Expected behavior***
   
   readBytes has very little overhead
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to