Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2352

Reusable event message mementos should be cached

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0, 2.11.1
    • Component/s: Core
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ckozak Carter Kozak
                Reporter:
                ckozak Carter Kozak
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: