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

Matt Sicker commented on LOG4J2-3441:
-------------------------------------

Oh now that I look at it, PatternConverter plugins rely on the ConverterKeys 
annotation which isn't currently indexed, so the plugin classes are loaded 
eagerly. This could be trickier to make lazy.

> Defer loading of StrLookup and PatternConverter plugin classes until first use
> ------------------------------------------------------------------------------
>
>                 Key: LOG4J2-3441
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3441
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Lookups, Pattern Converters, Plugins
>            Reporter: Matt Sicker
>            Assignee: Matt Sicker
>            Priority: Major
>
> StrLookup and PatternConverter plugins are eagerly loaded at startup. At this 
> point, these are a fairly large number of classes! If these plugins could be 
> lazily loaded similar to how Core category plugins aren't loaded until first 
> used in a configuration, that should shave off some startup time.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to