merlimat opened a new pull request, #3829:
URL: https://github.com/apache/bookkeeper/pull/3829

   ### Motivation
   
   For computing WriteSet we use a `Recycler` to avoid instantiating a new 
object each time. While that avoid allocations, it's based on thread-locals and 
has non-zero cost.
   
   In most cases the usage of WriteSet that we are doing is very basic: 
    * Get a `WriteSet` from the recycler
    * check the bookie indices
    * recycle the write-set
   
   Instead, we can just expose a method in the `DistributionSchedule` interface 
and avoid any recycler or object allocations.


-- 
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