Doug Cutting (JIRA) wrote:
>> this patch in some places removes the log guards
> 
> Most of the log guards are misguided.  Log guards should only be used on 
> DEBUG level messages in performance-critical inner loops.  Since INFO is the 
> expected log level, a guard on INFO & WARN level messages does not improve 
> performance, since these will be shown.  And most DEBUG-level messages are 
> not in performance critical code and hence do not need guards.  The guards 
> only make the code bigger and thus harder to read and maintain.

In particular, in all places where we check isWarnEnabled(), 
isFatalEnabled() and isInfoEnabled(), the 'if' should be removed.  All 
calls to isDebugEnabled() should be reviewed, and most should be removed.

These guards were all introduced by a patch some time ago.  I complained 
at the time and it was promised that this would be repaired, but it has 
not yet been.

Doug

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nutch-developers mailing list
Nutch-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to