5 Replies Latest reply on Jan 9, 2013 8:30 AM by mreasy

    Performance optimization in OrderedExecutorFactory

    mreasy

      Hi,

       

      While profiling our application, which makes excessive usage of HornetQ, org.hornetq.utils.OrderedExecutorFactory came to light, which has locking contentions on synchronized Collections-access.

       

      This can be enhanced by using a thread-sage collection in combination with some minor changes.

      I will attach a proposed patch (towards master), which shows, how this can be improved to work without lock contentions.

       

      This reduces lock contentions in our application significantly; would love to hear your comments.

       

       

      BR

      Rico