You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Mark (JIRA)" <ji...@apache.org> on 2013/07/12 11:09:48 UTC

[jira] [Created] (DIRMINA-948) Performance recession when invoke session.write concurrent

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