[ https://issues.apache.org/jira/browse/CASSANDRA-15764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yifan Cai updated CASSANDRA-15764: ---------------------------------- Resolution: Duplicate Status: Resolved (was: Open) > Optimize logging with lazy log parameter evaluation > --------------------------------------------------- > > Key: CASSANDRA-15764 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15764 > Project: Cassandra > Issue Type: Improvement > Components: Observability/Logging > Reporter: Yifan Cai > Assignee: Yifan Cai > Priority: Normal > > 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. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org