logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remko Popma (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (LOG4J2-1715) (GC) Avoid allocating temporary objects in NdcPatternConverter
Date Sat, 19 Nov 2016 13:25:58 GMT

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

Remko Popma closed LOG4J2-1715.
-------------------------------
    Resolution: Fixed

> (GC) Avoid allocating temporary objects in NdcPatternConverter
> --------------------------------------------------------------
>
>                 Key: LOG4J2-1715
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1715
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Pattern Converters
>    Affects Versions: 2.7
>            Reporter: Remko Popma
>            Assignee: Remko Popma
>             Fix For: 2.8
>
>
> Make NdcPatternConverter garbage-free by letting ThreadContext.ContextStack implementations
implement StringBuilderFormattable.
> Note that use of the ThreadContext stack is not garbage-free: the stack is cloned for
each log message. This only avoids creating objects during formatting in the layout.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message