Mark created DIRMINA-948:
----------------------------

             Summary: Performance recession when invoke session.write concurrent
                 Key: DIRMINA-948
                 URL: https://issues.apache.org/jira/browse/DIRMINA-948
             Project: MINA
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.0.7
            Reporter: Mark


In org.apache.mina.core.filterchainDefaultIoFilterChain, code around line 
number 600, 
<code>if (writeRequestQueue.size() == 0 )</code>
will raise performance problem in high concurrent situation, Mina default use 
ConcurrentLinkedQueue as writeRequestQueue, but size() of this queue is not a 
constant-time operation, suggest to use <code>if 
(writeRequestQueue.isEmpty(s))</code> instead of it.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to