You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Paul Gregoire (JIRA)" <ji...@apache.org> on 2013/02/10 01:25:12 UTC

[jira] [Created] (DIRMINA-934) Replace synchronized with a Semaphore for better performance

Paul Gregoire created DIRMINA-934:
-------------------------------------

             Summary: Replace synchronized with a Semaphore for better performance
                 Key: DIRMINA-934
                 URL: https://issues.apache.org/jira/browse/DIRMINA-934
             Project: MINA
          Issue Type: Improvement
          Components: Core
    Affects Versions: 2.0.7, 2.0.8
         Environment: Window 8 Pro x64, JDK 7
            Reporter: Paul Gregoire
             Fix For: 2.0.8
         Attachments: ProtocolCodecFilterWithSemaphore.diff

Replacing the synchronized block with a Semaphore in the ProtocolCodecFilter provides a lot of benefit in terms of locking and also reduces CPU utilization. See attached git diff or grab it from here: https://dl.dropbox.com/u/7316897/red5/drop/ProtocolCodecFilterWithSemaphore.diff


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