In performance critical sections of the code we should avoid code like:
| if (log.isTraceEnabled())
| {
| log.trace("Something");
| }
|
The problem is that the call to log.isTraceEnabled() actually takes up significant time.
This is why you'll see in the code the following:
| if (trace)
| {
| log.trace("okjok");
| }
|
Instead.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150399#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...