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

   ### Motivation
   
   `PendingAddOp` is not thread-safe and the BK client instead follows a 
pattern of "jumping" to a particular thread for both the requests and the 
callback path. 
   
   This is in practice much more expensive than acquiring a mutex since in most 
cases the caller will have already serialized the calls to `ledger.append()`. 
   
   With this change, we can avoid 2 context switches and the very big 
contention on the executor queues used between the threads.


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