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/13 23:19:00 UTC

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

     [ https://issues.apache.org/jira/browse/LOG4J2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carter Kozak closed LOG4J2-2352.
--------------------------------

> 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
>            Assignee: Carter Kozak
>            Priority: Major
>             Fix For: 3.0.0, 2.11.1
>
>
> 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)