You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Carter Kozak (JIRA)" <ji...@apache.org> on 2018/06/12 14:50:00 UTC

[jira] [Created] (LOG4J2-2352) Reusable event message mementos should be cached

Carter Kozak created LOG4J2-2352:
------------------------------------

             Summary: Reusable event message mementos should be cached
                 Key: LOG4J2-2352
                 URL: https://issues.apache.org/jira/browse/LOG4J2-2352
             Project: Log4j 2
          Issue Type: Improvement
          Components: Core
            Reporter: Carter Kozak


When multiple AsyncAppenders are configured, we invoke MutableLogEvent.memento (or RingBufferLogEvent.memento) for each one, allocating multiple formatted strings.

On the first invocation, we can set the event message to the new MementoMessage to avoid re-allocations.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)