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] [Commented] (LOG4J2-1341) (GC) Avoid allocating temporary objects in Pattern Converters for PatternLayout
Date Thu, 07 Apr 2016 01:30:25 GMT

    [ https://issues.apache.org/jira/browse/LOG4J2-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15229487#comment-15229487
] 

Remko Popma commented on LOG4J2-1341:
-------------------------------------

There is some documentation in the manual page on which patterns are garbage-free. Is that
what you have in mind?

> (GC) Avoid allocating temporary objects in Pattern Converters for PatternLayout
> -------------------------------------------------------------------------------
>
>                 Key: LOG4J2-1341
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1341
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Pattern Converters
>    Affects Versions: 2.5
>            Reporter: Remko Popma
>             Fix For: 2.7
>
>
> *To do*
> The following pattern converters can be modified to avoid creating temporary objects
in their {{format}} method:
> * AbstractStyleNameConverter
> * EncodingPatternConverter
> * EqualsIgnoreCaseReplacementConverter
> * EqualsReplacementConverter
> * FullLocationPatternConverter
> * HighlightConverter
> * IntegerPatternConverter
> * MarkerPatternConverter
> * MaxLengthConverter
> * RelativeTimePatternConverter
> * SequenceNumberPatternConverter
> * StyleConverter
> *Investigate*
> The following pattern converters may be difficult to modify since they rely on JDK components
that create temporary objects:
> * ExtendedThrowablePatternConverter
> * MapPatternConverter
> * MdcPatternConverter
> * NdcPatternConverter
> * RegexReplacementConverter
> * RootThrowablePatternConverter
> * ThrowablePatternConverter
> * UuidPatternConverter
> * VariablesNotEmptyReplacementConverter
> *Done*
> The following pattern converters already do not allocate temporary objects in their format
method:
> * ClassNamePatternConverter
> * DatePatternConverter
> * FileLocationPatternConverter
> * LevelPatternConverter
> * LineLocationPatternConverter
> * LineSeparatorPatternConverter
> * LiteralPatternConverter (unless literal contains '${')
> * LoggerPatternConverter
> * MarkerSimpleNamePatternConverter
> * MessagePatternConverter
> * MethodLocationPatternConverter
> * NamePatternConverter
> * NanoTimePatternConverter
> * ThreadIdPatternConverter
> * ThreadNamePatternConverter
> * ThreadPriorityPatternConverter



--
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