Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Duplicate
-
None
-
None
-
Performance
-
Normal
-
All
-
None
Description
Multiple logging statements in the source evaluate methods and use the return values as log parameter.
It does no harm when the log level permits for the statement.
However, for the logs that are permitted, the evaluation is a wastes of CPU.
The log parameters are not needed, but still being evaluated!
For such cases, lazy evaluation (by leveraging lambda) can be introduced to skip competing the string parameter.
Attachments
Issue Links
- duplicates
-
CASSANDRA-15766 NoSpamLogger arguments building objects on hot paths
- Resolved