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

   ### Motivation
   
   Use `BlockingQueue.drainTo()` in the Journal thread to minimize the 
contention between this thread and the threads passing entries to the journal. 
   
   The drain method in the `ArrayBlockingQueue` method will use the mutex only 
once and take out all the items in one shot.
   
   The logic in the journal dequeuing is already quite complicated. This change 
aims at not changing the whole logic, rather doing the minimal intervention.


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