On 5/28/07, Emmanuel Lecharny <elecharny@gmail.com> wrote:
> For instance, in ChainGuard.java, you have such invocations in the
> execute method :
> log.debug( "Is simple: " + request.isSimple() );
> log.debug( "SASL mechanism: " + request.getSaslMechanism() );
> log.debug( "Credentials: " + request.getCredentials() );
>
> Even if debug is disabled, this will invoke the request.XXX methods,
> and create a String concatenating the result with the message, String
> which will be discarded immediatly. When I did some profiling, I found
> that such calls cost as much as 5 to 10 % of the global CPU consummed
> inside the server.
Yes yes this is a needless waste of CPU cycles.
Alex