joshb1050 opened a new pull request, #4753:
URL: https://github.com/apache/activemq-artemis/pull/4753

   Currently, with many consumers tracked on a single ServerSession, each time 
a new consumer is added, we iterate through all the existing consumers to set 
their status to "started". This means that if there are k existing consumers on 
a session, adding a new consumer is O(k).
   
   However, we can optimize this by using an AtomicBoolean to ensure that we 
only set `started=true` on existing consumers when it was previously false, or 
vice versa.


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