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

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

Those are good points. Given that PatternConverter plugins are essentially 
plugins to plugins, they're deferred until the owning plugins are created. I 
did make an attempt at refactoring these plugins to better support lazy 
loading, but it started becoming a fairly invasive change. I'll update the 
description of this to close as implemented.

> 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