Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
isDebugEnabled() is optional. But when there are :
1. lots of concatenating Strings
2. complicated function calls
in the arguments, LOG.debug(..) should be guarded with LOG.isDebugEnabled() to avoid unnecessary arguments evaluation and impove performance.
Attachments
Attachments
Issue Links
- relates to
-
HDFS-7978 Add LOG.isDebugEnabled() guard for some LOG.debug(..)
- Resolved