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

Make RingBufferLogEvent::mergePropertiesIntoContextMap allocation-free if possible

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.5
    • None
    • Core
    • None

    Description

      RingBufferLogEvent::mergePropertiesIntoContextMap is called in the background (consumer) thread for each event.

      If configuration properties are specified it allocates the following temporary objects:

      • make mutable copy of the ThreadContext map
      • iterator over configuration properties map
      • for config values containing ${} placeholders, call StrSubstitutor.replace (which creates multiple temporary objects)

      (If configuration properties are not specified, no temporary objects are allocated.)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rpopma Remko Popma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: