Remko Popma created LOG4J2-1282:
-----------------------------------
Summary: Make RingBufferLogEvent::mergePropertiesIntoContextMap
allocation-free if possible
Key: LOG4J2-1282
URL: https://issues.apache.org/jira/browse/LOG4J2-1282
Project: Log4j 2
Issue Type: Improvement
Components: Core
Affects Versions: 2.5
Reporter: Remko Popma
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.)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]