You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Sangjin Lee (JIRA)" <ji...@apache.org> on 2008/08/04 21:48:44 UTC

[jira] Closed: (ASYNCWEB-24) wrap Logger.debug() calls and prefer StringBuilder over StringBuffer

     [ https://issues.apache.org/jira/browse/ASYNCWEB-24?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sangjin Lee closed ASYNCWEB-24.
-------------------------------

       Resolution: Fixed
    Fix Version/s: client-1.0.0

Closed.

> wrap Logger.debug() calls and prefer StringBuilder over StringBuffer
> --------------------------------------------------------------------
>
>                 Key: ASYNCWEB-24
>                 URL: https://issues.apache.org/jira/browse/ASYNCWEB-24
>             Project: Asyncweb
>          Issue Type: Improvement
>          Components: Client
>    Affects Versions: client-1.0.0
>            Reporter: Sangjin Lee
>            Assignee: Sangjin Lee
>            Priority: Minor
>             Fix For: client-1.0.0
>
>
> There are some Logger.debug() and Logger.trace() calls in code in the critical path.  To reduce the overhead of evaluating arguments, they need to wrapped with isDebugEnabled() and isTraceEnabled() calls.  Also, StringBuilder is preferred over StringBuffer due to the unnecessary synchronization.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.