essobedo opened a new pull request, #17546:
URL: https://github.com/apache/camel/pull/17546

   Fix for https://issues.apache.org/jira/browse/CAMEL-21888
   
   ## Motivation
   
   Iterating over all the changes to get size is very costly in case of a big 
cache size. This was initially avoided for consistency issues reason, but the 
addition lately of a ReadWriteLock allows to put it back
   
   ## Modifications:
   
   * Avoid an O(N) to get the size of the changes by counting them using an 
AtomicInteger.


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