|
From: Ronald v. K. <rv...@ab...> - 2003-03-29 00:26:44
|
Hi,
I've seen that all logging is done without checking whether the
specified loglevel is even configured. We've seen in our Messaging
System that first checking if a certain loglevel is configured gave us
3-7% performance gain. This was due to the fact that on man ocasions xml
-> string conversions were needed as well as string creation/concatenation.
So instead of
logger.debug("A message");
we now do
if (logger.isDebugEnabled()) {
logger.debug("A message");
}
I do not know what the gain will be in hermes since i've not looked
through all the code. It's probably not that much since debug info is
not that detailed, but I thought I'd just mention it.
Ronald
|